mirror of
https://github.com/EDeev/api_processor.git
synced 2026-06-15 19:11:01 +03:00
13 lines
381 B
Python
13 lines
381 B
Python
# api_project/api_project/urls.py
|
|
from django.contrib import admin
|
|
from django.urls import path, include
|
|
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
|
|
urlpatterns = [
|
|
path('admin/', admin.site.urls),
|
|
path('api/', include('api_app.urls')),
|
|
]
|
|
|
|
if settings.DEBUG:
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|