1
0
Fork 0
IdreXyz/idre/urls.py

22 lines
520 B
Python
Raw Normal View History

2017-08-15 15:26:13 +02:00
from django.conf import settings
2016-02-01 17:52:43 +01:00
from django.conf.urls import include, url
2015-03-14 22:38:12 +01:00
from django.conf.urls.static import static
from django.contrib import admin
import idre.views
import label.urls
2016-02-02 18:28:58 +01:00
import news.urls
2015-03-14 22:38:12 +01:00
admin.autodiscover()
2016-02-01 17:52:43 +01:00
2016-02-02 18:28:58 +01:00
urlpatterns = (
2017-08-15 15:26:13 +02:00
[ url(r"^about/$", idre.views.about_view, name="about") ] +
2016-02-02 18:28:58 +01:00
label.urls.urlpatterns +
news.urls.urlpatterns +
[ url(r"^admin/", include(admin.site.urls)) ]
)
2015-03-14 22:38:12 +01:00
2017-08-15 15:26:13 +02:00
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)