gealogiuya
This commit is contained in:
21
core/urls.py
Normal file
21
core/urls.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from django.conf import settings
|
||||
from django.conf.urls.i18n import i18n_patterns # noqa: F401
|
||||
from django.contrib import admin
|
||||
from django.urls import path, include, re_path
|
||||
from django.views.static import serve
|
||||
|
||||
from core.config.swagger import urlpatterns as swagger_patterns
|
||||
|
||||
urlpatterns = [
|
||||
path("", include("apps.shared.urls")),
|
||||
path("", include("apps.geology.urls")),
|
||||
path("admin/", admin.site.urls),
|
||||
path("i18n/", include("django.conf.urls.i18n")),
|
||||
path("ckeditor5/", include("django_ckeditor_5.urls")),
|
||||
path("rosetta/", include("rosetta.urls")),
|
||||
# Media and static files
|
||||
re_path(r"static/(?P<path>.*)", serve, {"document_root": settings.STATIC_ROOT}),
|
||||
re_path(r"media/(?P<path>.*)", serve, {"document_root": settings.MEDIA_ROOT}),
|
||||
]
|
||||
|
||||
urlpatterns += swagger_patterns
|
||||
Reference in New Issue
Block a user