-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathurls.py
36 lines (32 loc) · 1.65 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from django.conf.urls.defaults import *
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^hnofficehours/', include('hnofficehours.foo.urls')),
(r'^tagging_autocomplete/', include('tagging_autocomplete.urls')),
(r'^ajax_select/', include('ajax_select.urls')),
# 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)),
url(r'^$', 'views.site_index', name='index'),
url(r'^about/$', 'views.about', name='about'),
url(r'^login/$', 'django.contrib.auth.views.login', name='login'),
url(r'logout/$', 'django.contrib.auth.views.logout', kwargs={'next_page': '/'}, name='logout'),
url(r'^register/$', 'registration.views.register', name='register'),
url(r'^register/finish/$', 'registration.views.set_password', name='set_password'),
url(r'^officehours/', include('officehours.urls')),
url(r'^profile/', include('profiles.urls')),
url(r'^', include('search.urls')),
(r'^proposal/$', 'django.views.generic.simple.direct_to_template', {'template': 'originalproposal.html'}),
)
if settings.DEBUG:
urlpatterns += patterns('',
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
(r'^raw_template/(?P<template>.*)', 'django.views.generic.simple.direct_to_template'),
)