Commit 04fbf5d3 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

new app sub urls

parent 310f599f
...@@ -18,26 +18,18 @@ urlpatterns = patterns('', ...@@ -18,26 +18,18 @@ urlpatterns = patterns('',
# app-level urls # app-level urls
url(r'^share/', include('trades.urls')), url(r'^share/', include('trades.urls')),
url(r'^student/', include('core.urls')), url(r'^student/', include('core.urls')),
# student urls? url(r'^lookouts/', include('lookouts.urls')),
#### USER PAGES #### ### static pages ###
# home page
url(r'^$', TemplateView.as_view(template_name='index.html'), name = 'homepage'), url(r'^$', TemplateView.as_view(template_name='index.html'), name = 'homepage'),
# create lookout url(r'^about/?$', TemplateView.as_view(template_name='about.html'), name='about'),
url(r'^u/(?P<username>\w+)/create-lookout/?$', 'lookouts.views.create_lookout', name = 'create_lookout'), url(r'^privacy/?$', TemplateView.as_view(template_name='privacy.html'), name='privacy'),
url(r'^privacy/opt-out/?$', 'core.views.privacy_opt_out', name='privacy_opt_out'),
#### LISTING PAGES #### #### LISTING PAGES ####
# book listing page # book listing page
url(r'^listings/(?P<book_id>\d+)$', 'trades.views.view_listing', name = 'view_listing'), url(r'^listings/(?P<book_id>\d+)$', 'trades.views.view_listing', name = 'view_listing'),
#### STATIC PAGES ####
# about page
url(r'^about/?$', TemplateView.as_view(template_name='about.html'), name='about'),
# privacy policy
url(r'^privacy/?$', TemplateView.as_view(template_name='privacy.html'), name='privacy'),
# privacy opt-out (for piwik)
url(r'^privacy/opt-out/?$', 'core.views.privacy_opt_out', name='privacy_opt_out'),
#### SEARCH PAGES #### #### SEARCH PAGES ####
# points to a SearchView Instance # points to a SearchView Instance
#url(r'^search/', include('haystack.urls')), #url(r'^search/', include('haystack.urls')),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment