1 from django.conf.urls.defaults import *
2 from django.conf import settings
3 # Uncomment the next two lines to enable the admin:
4 from django.contrib import admin
7 urlpatterns = patterns('',
9 # (r'^fod/flowspy/', include('flowspy.foo.urls')),
10 (r'^fod/poll/', include('flowspy.poller.urls')),
11 # url(r'^fod/?$', 'flowspy.flowspec.views.user_routes', name="user-routes"),
12 url(r'^fod/?$', 'flowspy.flowspec.views.group_routes', name="group-routes"),
13 url(r'^fod/profile/?$', 'flowspy.flowspec.views.user_profile', name="user-profile"),
14 url(r'^fod/add/?$', 'flowspy.flowspec.views.add_route', name="add-route"),
15 #url(r'^fod/addrl/?$', 'flowspy.flowspec.views.add_rate_limit', name="add-rate-limit"),
16 url(r'^fod/addport/?$', 'flowspy.flowspec.views.add_port', name="add-port"),
17 url(r'^fod/edit/(?P<route_slug>[\w\-]+)/$', 'flowspy.flowspec.views.edit_route', name="edit-route"),
18 url(r'^fod/delete/(?P<route_slug>[\w\-]+)/$', 'flowspy.flowspec.views.delete_route', name="delete-route"),
19 url(r'^fod/login/?', 'flowspy.flowspec.views.user_login', name="login"),
20 url(r'^fod/welcome/?', 'flowspy.flowspec.views.welcome', name="welcome"),
21 url(r'^fod/logout/?', 'flowspy.flowspec.views.user_logout', name="logout"),
22 (r'^fod/setlang/?$', 'django.views.i18n.set_language'),
23 # Uncomment the admin/doc line below to enable admin documentation:
24 (r'^fod/admin/doc/', include('django.contrib.admindocs.urls')),
25 url(r'^fod/load_js/(?P<file>[\w\s\d_-]+)/$', 'flowspy.flowspec.views.load_jscript', name="load-js"),
27 # Uncomment the next line to enable the admin:
28 (r'^fod/admin/', include(admin.site.urls)),
33 urlpatterns += patterns('',
34 (r'^fod/static/(?P<path>.*)', 'django.views.static.serve',\
35 {'document_root': settings.STATIC_URL}),