root / urls.py @ 3e99e2d1
History | View | Annotate | Download (1.3 kB)
1 | a3af8464 | Leonidas Poulopoulos | from django.conf.urls.defaults import * |
---|---|---|---|
2 | 357d48dc | Leonidas Poulopoulos | from django.conf import settings |
3 | a3af8464 | Leonidas Poulopoulos | # Uncomment the next two lines to enable the admin:
|
4 | a24fbf37 | Leonidas Poulopoulos | from django.contrib import admin |
5 | a24fbf37 | Leonidas Poulopoulos | admin.autodiscover() |
6 | a3af8464 | Leonidas Poulopoulos | |
7 | a3af8464 | Leonidas Poulopoulos | urlpatterns = patterns('',
|
8 | a3af8464 | Leonidas Poulopoulos | # Example:
|
9 | a3af8464 | Leonidas Poulopoulos | # (r'^flowspy/', include('flowspy.foo.urls')),
|
10 | 3e99e2d1 | Leonidas Poulopoulos | (r'^poll/', include('flowspy.poller.urls')), |
11 | 357d48dc | Leonidas Poulopoulos | url(r'^/?$', 'flowspy.flowspec.views.user_routes', name="user-routes"), |
12 | 9cad4715 | Leonidas Poulopoulos | url(r'^add/?$', 'flowspy.flowspec.views.add_route', name="add-route"), |
13 | 3e99e2d1 | Leonidas Poulopoulos | url(r'^edit/(?P<route_slug>\w+)/$', 'flowspy.flowspec.views.edit_route', name="edit-route"), |
14 | 3e99e2d1 | Leonidas Poulopoulos | url(r'^delete/(?P<route_slug>\w+)/$', 'flowspy.flowspec.views.delete_route', name="delete-route"), |
15 | 357d48dc | Leonidas Poulopoulos | url(r'^user/login/?', 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name="login"), |
16 | 357d48dc | Leonidas Poulopoulos | url(r'^user/logout/?', 'django.contrib.auth.views.logout', {'next_page': '/'}, name="logout"), |
17 | 357d48dc | Leonidas Poulopoulos | (r'^setlang/?$', 'django.views.i18n.set_language'), |
18 | a3af8464 | Leonidas Poulopoulos | # Uncomment the admin/doc line below to enable admin documentation:
|
19 | a24fbf37 | Leonidas Poulopoulos | (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
20 | a3af8464 | Leonidas Poulopoulos | |
21 | 3e99e2d1 | Leonidas Poulopoulos | |
22 | a3af8464 | Leonidas Poulopoulos | # Uncomment the next line to enable the admin:
|
23 | a24fbf37 | Leonidas Poulopoulos | (r'^admin/', include(admin.site.urls)),
|
24 | a3af8464 | Leonidas Poulopoulos | ) |
25 | 357d48dc | Leonidas Poulopoulos | |
26 | 357d48dc | Leonidas Poulopoulos | |
27 | 357d48dc | Leonidas Poulopoulos | if settings.DEBUG:
|
28 | 357d48dc | Leonidas Poulopoulos | urlpatterns += patterns('',
|
29 | 357d48dc | Leonidas Poulopoulos | (r'^static/(?P<path>.*)', 'django.views.static.serve',\ |
30 | 357d48dc | Leonidas Poulopoulos | {'document_root': settings.STATIC_URL}),
|
31 | 357d48dc | Leonidas Poulopoulos | ) |