urls.py
20 lines
| 654 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
|
r564 | from boards.views.not_found import NotFoundView | ||
neko259
|
r0 | admin.autodiscover() | ||
urlpatterns = patterns('', | ||||
# Uncomment the admin/doc line below to enable admin documentation: | ||||
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')), | ||||
neko259
|
r811 | url(r'^admin/', include(admin.site.urls), name='admin'), | ||
neko259
|
r22 | url(r'^', include('boards.urls')), | ||
Ilyas
|
r49 | ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) | ||
neko259
|
r564 | handler404 = NotFoundView.as_view() | ||