source: remit/urls.py @ 86f8884

client
Last change on this file since 86f8884 was 92ca60e, checked in by Alex Dehnert <adehnert@…>, 15 years ago

Rename treasury to remit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1from django.conf.urls.defaults import *
2from django.contrib.auth.views import login
3
4import settings
5
6# Necessary views
7import finance_core.views
8
9# Uncomment the next two lines to enable the admin:
10from django.contrib import admin
11admin.autodiscover()
12
13urlpatterns = patterns('',
14    # Example:
15    (r'^vouchers/', include('vouchers.urls')),
16    (r'^finance_core/', include('finance_core.urls')),
17
18    # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
19    # to INSTALLED_APPS to enable admin documentation:
20    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
21
22    # Uncomment the next line to enable the admin:
23    (r'^admin/(.*)', admin.site.root),
24    (r'^accounts/login/', login, ),
25)
26
27if settings.DEBUG:
28    from django.views.static import serve
29    _media_url = settings.MEDIA_URL
30    if _media_url.startswith('/'):
31        _media_url = _media_url[1:]
32        urlpatterns += patterns('',
33                                (r'^%s(?P<path>.*)$' % _media_url,
34                                serve,
35                                {'document_root': settings.MEDIA_ROOT}))
36    del(_media_url, serve)
Note: See TracBrowser for help on using the repository browser.