13 lines
351 B
Python
13 lines
351 B
Python
|
from django.conf import settings
|
||
|
from django.conf.urls import include, url
|
||
|
from django.conf.urls.static import static
|
||
|
from django.contrib import admin
|
||
|
|
||
|
urlpatterns = [
|
||
|
url(r"^", include("djangoldp.urls")),
|
||
|
url(r"^admin/", admin.site.urls),
|
||
|
]
|
||
|
|
||
|
if settings.DEBUG:
|
||
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|