diff options
Diffstat (limited to 'snakeplan/urls.py')
-rw-r--r-- | snakeplan/urls.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/snakeplan/urls.py b/snakeplan/urls.py index 6d910f1..c6feb22 100644 --- a/snakeplan/urls.py +++ b/snakeplan/urls.py | |||
@@ -19,14 +19,17 @@ SnakePlan URL Configuration | |||
19 | # limitations under the License. | 19 | # limitations under the License. |
20 | 20 | ||
21 | from django.views import static | 21 | from django.views import static |
22 | from django.views.generic.simple import direct_to_template | ||
22 | from django.conf.urls.defaults import patterns, include | 23 | from django.conf.urls.defaults import patterns, include |
23 | 24 | ||
24 | from django.contrib import admin; admin.autodiscover() | 25 | from django.contrib import admin; admin.autodiscover() |
25 | 26 | ||
26 | 27 | ||
27 | urlpatterns = patterns('django.views.generic.simple', | 28 | urlpatterns = patterns('', |
28 | (r'^$', 'redirect_to', {'url': 'projects/' }), | 29 | (r'^api/', include('api.urls')), |
29 | (r'^projects/', include('projects.urls')), | 30 | (r'^', include('projects.urls')), |
31 | (r'^$', direct_to_template, { 'template': 'base.html' }), | ||
32 | |||
30 | (r'^admin/', include(admin.site.urls)), | 33 | (r'^admin/', include(admin.site.urls)), |
31 | (r'^media/(?P<path>.*)$', static.serve, {'document_root':'templates/media'}), | 34 | (r'^media/(?P<path>.*)$', static.serve, {'document_root':'templates/media'}), |
32 | ) | 35 | ) |