urls.py 622 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
from django.conf.urls.defaults import patterns, include, url
from django.conf import settings
from bt import views as bt

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    (r'^accounts/logout$', 'django.contrib.auth.views.logout', {'next_page' : '/'}),
    (r'^accounts/', include('registration.urls')),
stef's avatar
stef committed
12
13
    (r'^add/$', bt.add),
    (r'^edit/$', bt.edit),
14
15
16
17
18
19
)

if settings.DEV_SERVER:
    urlpatterns += patterns('',
        (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_PATH}),
    )