urls.py
23 lines
| 767 B
| text/x-python
|
PythonLexer
/ neboard / urls.py
neko259
|
r0 | from django.conf.urls import patterns, include, url | ||
# Uncomment the next two lines to enable the admin: | ||||
neko259
|
r22 | from django.conf.urls.static import static | ||
neko259
|
r0 | from django.contrib import admin | ||
neko259
|
r22 | from neboard import settings | ||
neko259
|
r0 | admin.autodiscover() | ||
urlpatterns = patterns('', | ||||
# Examples: | ||||
# url(r'^$', 'neboard.views.home', name='home'), | ||||
# url(r'^neboard/', include('neboard.foo.urls')), | ||||
# Uncomment the admin/doc line below to enable admin documentation: | ||||
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')), | ||||
# Uncomment the next line to enable the admin: | ||||
url(r'^admin/', include(admin.site.urls)), | ||||
neko259
|
r22 | url(r'^', include('boards.urls')), | ||
Ilyas
|
r49 | ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) | ||
neko259
|
r130 | handler404 = 'boards.views.page_404' | ||