urls.py
changeset 6 4e819dd96e1f
parent 5 7358eeae14d8
child 8 f0b5ff862c6d
equal deleted inserted replaced
5:7358eeae14d8 6:4e819dd96e1f
    17     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    17     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    18 
    18 
    19     # Uncomment the next line to enable the admin:
    19     # Uncomment the next line to enable the admin:
    20     # (r'^admin/', include(admin.site.urls)),
    20     # (r'^admin/', include(admin.site.urls)),
    21     url (r'^$', direct_to_template, {"template": "homepage.html"}, name="home"),
    21     url (r'^$', direct_to_template, {"template": "homepage.html"}, name="home"),
    22     (r'^register/','content.views.register'),
    22     (r'^register/','conference.views.register'),
    23     (r'^logout/','content.views.logout'),
    23     (r'^logout/','conference.views.logout'),
    24     (r'^regthank/(?P<id>\d+)/$', 'content.views.regthank'),
    24     (r'^regthank/(?P<id>\d+)/$', 'conference.views.regthank'),
    25     (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'site-content'}),
    25     (r'^site-content/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    26 )
    26 )