Statistics
| Branch: | Tag: | Revision:

root / urls.py.dist @ 46a6064c

History | View | Annotate | Download (2.2 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/addrl/?$', 'flowspy.flowspec.views.add_rate_limit', name="add-rate-limit"),
17
    url(r'^fod/addport/?$', 'flowspy.flowspec.views.add_port', name="add-port"),
18
    url(r'^fod/edit/(?P<route_slug>[\w\-]+)/$', 'flowspy.flowspec.views.edit_route', name="edit-route"),
19
    url(r'^fod/delete/(?P<route_slug>[\w\-]+)/$', 'flowspy.flowspec.views.delete_route', name="delete-route"),
20
    url(r'^fod/login/?', 'flowspy.flowspec.views.user_login', name="login"),
21
    url(r'^fod/welcome/?', 'flowspy.flowspec.views.welcome', name="welcome"),
22
    url(r'^fod/logout/?', 'flowspy.flowspec.views.user_logout', name="logout"),
23
    (r'^fod/setlang/?$', 'django.views.i18n.set_language'),
24
    # Uncomment the admin/doc line below to enable admin documentation:
25
    (r'^fod/admin/doc/', include('django.contrib.admindocs.urls')),
26
    url(r'^fod/load_js/(?P<file>[\w\s\d_-]+)/$', 'flowspy.flowspec.views.load_jscript', name="load-js"), 
27

    
28
    url(r'^fod/accounts/activate/(?P<activation_key>\w+)/$', 'accounts.views.activate', name='activate_account'),
29
    url(r'^fod/activate/complete/$',
30
                           direct_to_template,
31
                           { 'template': 'registration/activation_complete.html' },
32
                           name='registration_activation_complete'),
33

    
34
    # Uncomment the next line to enable the admin:
35
    (r'^fod/admin/', include(admin.site.urls)),
36

    
37
)
38

    
39

    
40
if settings.DEBUG:
41
    urlpatterns += patterns('',
42
        (r'^fod/static/(?P<path>.*)', 'django.views.static.serve',\
43
            {'document_root':  settings.STATIC_URL}),
44
    )