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
|
|
|
|
|
2016-02-01 17:52:43 +01:00
|
|
|
import idre.settings
|
2016-02-01 19:04:09 +01:00
|
|
|
import idre.views
|
|
|
|
import label.urls
|
2015-03-14 22:38:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
admin.autodiscover()
|
|
|
|
|
2016-02-01 17:52:43 +01:00
|
|
|
|
|
|
|
urlpatterns = [
|
2016-02-01 19:04:09 +01:00
|
|
|
url(r"^$", idre.views.home, name = "home")
|
|
|
|
] + label.urls.urlpatterns + [
|
|
|
|
url(r"^admin/", include(admin.site.urls))
|
2016-02-01 17:52:43 +01:00
|
|
|
]
|
2015-03-14 22:38:12 +01:00
|
|
|
|
2016-02-01 17:52:43 +01:00
|
|
|
if idre.settings.DEBUG:
|
2015-03-14 22:38:12 +01:00
|
|
|
urlpatterns += static(
|
2016-02-01 17:52:43 +01:00
|
|
|
idre.settings.MEDIA_URL,
|
|
|
|
document_root = idre.settings.MEDIA_ROOT
|
|
|
|
)
|