urls.py
24 lines
| 742 B
| text/x-python
|
PythonLexer
/ neboard / urls.py
neko259
|
r1486 | from django.conf.urls import include, url | ||
neko259
|
r0 | |||
# 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() | ||
neko259
|
r1486 | urlpatterns = [ | ||
neko259
|
r0 | # Uncomment the admin/doc line below to enable admin documentation: | ||
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')), | ||||
neko259
|
r1986 | url(r'^admin/', admin.site.urls, name='admin'), | ||
neko259
|
r22 | url(r'^', include('boards.urls')), | ||
neko259
|
r1486 | ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) | ||
Ilyas
|
r49 | |||
neko259
|
r1921 | if settings.DEBUG: | ||
import debug_toolbar | ||||
urlpatterns.append(url(r'^__debug__/', include(debug_toolbar.urls))) | ||||
neko259
|
r564 | handler404 = NotFoundView.as_view() | ||