root / urls.py.dist @ 552eaedd
History | View | Annotate | Download (2.3 kB)
1 |
from django.conf.urls.defaults import * |
---|---|
2 |
from django.views.generic.simple import direct_to_template |
3 |
from django.conf import settings |
4 |
# Uncomment the next two lines to enable the admin: |
5 |
from django.contrib import admin |
6 |
admin.autodiscover() |
7 |
|
8 |
urlpatterns = patterns('', |
9 |
# Example: |
10 |
# (r'^fod/flowspy/', include('flowspy.foo.urls')), |
11 |
(r'^fod/poll/', include('flowspy.poller.urls')), |
12 |
# url(r'^fod/?$', 'flowspy.flowspec.views.user_routes', name="user-routes"), |
13 |
url(r'^fod/?$', 'flowspy.flowspec.views.group_routes', name="group-routes"), |
14 |
url(r'^fod/profile/?$', 'flowspy.flowspec.views.user_profile', name="user-profile"), |
15 |
url(r'^fod/add/?$', 'flowspy.flowspec.views.add_route', name="add-route"), |
16 |
url(r'^fod/addset/?$', 'flowspy.flowspec.views.add_route_set', name="add-route-set"), |
17 |
#url(r'^fod/addrl/?$', 'flowspy.flowspec.views.add_rate_limit', name="add-rate-limit"), |
18 |
url(r'^fod/addport/?$', 'flowspy.flowspec.views.add_port', name="add-port"), |
19 |
url(r'^fod/edit/(?P<route_slug>[\w\-]+)/$', 'flowspy.flowspec.views.edit_route', name="edit-route"), |
20 |
url(r'^fod/delete/(?P<route_slug>[\w\-]+)/$', 'flowspy.flowspec.views.delete_route', name="delete-route"), |
21 |
url(r'^fod/login/?', 'flowspy.flowspec.views.user_login', name="login"), |
22 |
url(r'^fod/welcome/?', 'flowspy.flowspec.views.welcome', name="welcome"), |
23 |
url(r'^fod/logout/?', 'flowspy.flowspec.views.user_logout', name="logout"), |
24 |
(r'^fod/setlang/?$', 'django.views.i18n.set_language'), |
25 |
# Uncomment the admin/doc line below to enable admin documentation: |
26 |
(r'^fod/admin/doc/', include('django.contrib.admindocs.urls')), |
27 |
url(r'^fod/load_js/(?P<file>[\w\s\d_-]+)/$', 'flowspy.flowspec.views.load_jscript', name="load-js"), |
28 |
|
29 |
url(r'^fod/accounts/activate/(?P<activation_key>\w+)/$', 'accounts.views.activate', name='activate_account'), |
30 |
url(r'^fod/activate/complete/$', |
31 |
direct_to_template, |
32 |
{ 'template': 'registration/activation_complete.html' }, |
33 |
name='registration_activation_complete'), |
34 |
|
35 |
# Uncomment the next line to enable the admin: |
36 |
(r'^fod/admin/', include(admin.site.urls)), |
37 |
|
38 |
) |
39 |
|
40 |
|
41 |
if settings.DEBUG: |
42 |
urlpatterns += patterns('', |
43 |
(r'^fod/static/(?P<path>.*)', 'django.views.static.serve',\ |
44 |
{'document_root': settings.STATIC_URL}), |
45 |
) |