startinblox-startinoff/server/urls.py
2021-03-17 15:33:34 +01:00

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)