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