urls.py
24 lines
| 751 B
| text/x-python
|
PythonLexer
/ neboard / urls.py
|
r1486 | from django.conf.urls import include, url | ||
|
r0 | |||
# Uncomment the next two lines to enable the admin: | ||||
|
r22 | from django.conf.urls.static import static | ||
|
r0 | from django.contrib import admin | ||
|
r22 | from neboard import settings | ||
|
r564 | from boards.views.not_found import NotFoundView | ||
|
r0 | admin.autodiscover() | ||
|
r1486 | urlpatterns = [ | ||
|
r0 | # Uncomment the admin/doc line below to enable admin documentation: | ||
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')), | ||||
|
r811 | url(r'^admin/', include(admin.site.urls), name='admin'), | ||
|
r22 | url(r'^', include('boards.urls')), | ||
|
r1486 | ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) | ||
|
r49 | |||
|
r1921 | if settings.DEBUG: | ||
import debug_toolbar | ||||
urlpatterns.append(url(r'^__debug__/', include(debug_toolbar.urls))) | ||||
|
r564 | handler404 = NotFoundView.as_view() | ||