diff options
Diffstat (limited to 'motor/urls.py')
-rw-r--r-- | motor/urls.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/motor/urls.py b/motor/urls.py new file mode 100644 index 0000000..c19c2d0 --- /dev/null +++ b/motor/urls.py @@ -0,0 +1,14 @@ +from django.conf.urls import patterns, include, url +from django.views.generic import TemplateView + +# Uncomment the next two lines to enable the admin: +from django.contrib import admin +admin.autodiscover() + +urlpatterns = patterns( + '', + url(r'^$', 'docs.views.index', name='docs-index'), + url(r'^terms/$', TemplateView.as_view(template_name="terms.html"), {'title': 'ServoApp Terms of Service'}), + (r'^admin/', include(admin.site.urls)), + url(r'^([\w\-]+)/$', 'docs.views.view_article', name='docs-view'), +) |