Statistics
| Branch: | Tag: | Revision:

root / urls.py @ 0cac144d

History | View | Annotate | Download (1.8 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 97e42c7d Leonidas Poulopoulos
    # (r'^fod/flowspy/', include('flowspy.foo.urls')),
10 97e42c7d Leonidas Poulopoulos
    (r'^fod/poll/', include('flowspy.poller.urls')),
11 97e42c7d Leonidas Poulopoulos
#    url(r'^fod/?$', 'flowspy.flowspec.views.user_routes', name="user-routes"),
12 97e42c7d Leonidas Poulopoulos
    url(r'^fod/?$', 'flowspy.flowspec.views.group_routes', name="group-routes"),
13 97e42c7d Leonidas Poulopoulos
    url(r'^fod/profile/?$', 'flowspy.flowspec.views.user_profile', name="user-profile"),
14 97e42c7d Leonidas Poulopoulos
    url(r'^fod/add/?$', 'flowspy.flowspec.views.add_route', name="add-route"),
15 97e42c7d Leonidas Poulopoulos
    url(r'^fod/addrl/?$', 'flowspy.flowspec.views.add_rate_limit', name="add-rate-limit"),
16 97e42c7d Leonidas Poulopoulos
    url(r'^fod/addport/?$', 'flowspy.flowspec.views.add_port', name="add-port"),
17 0cac144d Leonidas Poulopoulos
    url(r'^fod/edit/(?P<route_slug>[\w\-]+)/$', 'flowspy.flowspec.views.edit_route', name="edit-route"),
18 0cac144d Leonidas Poulopoulos
    url(r'^fod/delete/(?P<route_slug>[\w\-]+)/$', 'flowspy.flowspec.views.delete_route', name="delete-route"),
19 97e42c7d Leonidas Poulopoulos
    url(r'^fod/login/?', 'flowspy.flowspec.views.user_login', name="login"),
20 049a5a10 Leonidas Poulopoulos
    url(r'^fod/welcome/?', 'flowspy.flowspec.views.welcome', name="welcome"),
21 97e42c7d Leonidas Poulopoulos
    url(r'^fod/logout/?', 'flowspy.flowspec.views.user_logout', name="logout"),
22 97e42c7d Leonidas Poulopoulos
    (r'^fod/setlang/?$', 'django.views.i18n.set_language'),
23 a3af8464 Leonidas Poulopoulos
    # Uncomment the admin/doc line below to enable admin documentation:
24 97e42c7d Leonidas Poulopoulos
    (r'^fod/admin/doc/', include('django.contrib.admindocs.urls')),
25 97e42c7d Leonidas Poulopoulos
    url(r'^fod/load_js/(?P<file>[\w\s\d_-]+)/$', 'flowspy.flowspec.views.load_jscript', name="load-js"), 
26 3e99e2d1 Leonidas Poulopoulos
27 a3af8464 Leonidas Poulopoulos
    # Uncomment the next line to enable the admin:
28 97e42c7d Leonidas Poulopoulos
    (r'^fod/admin/', include(admin.site.urls)),
29 a3af8464 Leonidas Poulopoulos
)
30 357d48dc Leonidas Poulopoulos
31 357d48dc Leonidas Poulopoulos
32 357d48dc Leonidas Poulopoulos
if settings.DEBUG:
33 357d48dc Leonidas Poulopoulos
    urlpatterns += patterns('',
34 97e42c7d Leonidas Poulopoulos
        (r'^fod/static/(?P<path>.*)', 'django.views.static.serve',\
35 357d48dc Leonidas Poulopoulos
            {'document_root':  settings.STATIC_URL}),
36 0cac144d Leonidas Poulopoulos
    )