Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding=utf-8
- from django.conf.urls.defaults import *
- # Uncomment the next two lines to enable the admin:
- from django.contrib import admin
- admin.autodiscover()
- urlpatterns = patterns('',
- # Example:
- # (r'^Ticker/', include('Ticker.foo.urls')),
- (r'^$', 'Ticker.frontend.views.index'),
- (r'^(?P<pin>\d+)/$', 'Ticker.frontend.views.index'),
- (r'^manage/$', 'Ticker.frontend.views.manage'),
- # dont know if this works but I have someting like this wuold be cool:
- (r'^manage/(?P<action>)/$', 'Ticker.frontend.views.manage', { "action" : action }),
- (r'^accounts/login/$', 'Ticker.frontend.views.login'),
- (r'^accounts/logout/$', 'Ticker.frontend.views.logout'),
- # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
- # to INSTALLED_APPS to enable admin documentation:
- # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
- # Uncomment the next line to enable the admin:
- (r'^admin/', include(admin.site.urls)),
- )
Add Comment
Please, Sign In to add comment