Guest User

Untitled

a guest
Jul 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. # coding=utf-8
  2. from django.conf.urls.defaults import *
  3.  
  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'^Ticker/', include('Ticker.foo.urls')),
  11. (r'^$', 'Ticker.frontend.views.index'),
  12. (r'^(?P<pin>\d+)/$', 'Ticker.frontend.views.index'),
  13. (r'^manage/$', 'Ticker.frontend.views.manage'),
  14.  
  15. # dont know if this works but I have someting like this wuold be cool:
  16. (r'^manage/(?P<action>)/$', 'Ticker.frontend.views.manage', { "action" : action }),
  17.  
  18. (r'^accounts/login/$', 'Ticker.frontend.views.login'),
  19. (r'^accounts/logout/$', 'Ticker.frontend.views.logout'),
  20.  
  21. # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
  22. # to INSTALLED_APPS to enable admin documentation:
  23. # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
  24.  
  25. # Uncomment the next line to enable the admin:
  26. (r'^admin/', include(admin.site.urls)),
  27. )
Add Comment
Please, Sign In to add comment