PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/urls.py

http://djforum.googlecode.com/
Python | 24 lines | 21 code | 3 blank | 0 comment | 0 complexity | 8adea6df8a39cc6f7c7fee9e027b3251 MD5 | raw file
 1from django.conf.urls.defaults import *
 2from djforum.settings import MEDIA_ROOT
 3
 4from django.contrib import admin
 5admin.autodiscover()
 6
 7
 8urlpatterns = patterns('',
 9    # Example:
10    # (r'^djangopower/', include('djangopower.foo.urls')),
11    # static media serving for dev
12    (r'^site_media/(?P<path>.*)$',
13        'django.views.static.serve',
14        {'document_root': MEDIA_ROOT}
15    ),
16
17    # Uncomment this for admin:
18    (r'^admin/(.*)', admin.site.root),
19    
20    (r'^forum/',include('djforum.forum.urls')),
21    
22    #self-defined admin
23    #(r'^myadmin/', include('djforum.forum.admin_urls')),
24)