kopia lustrzana https://github.com/djpeacher/django-projects
feat: ADMIN_URL setting
rodzic
74553cf649
commit
9529c0b54a
|
@ -29,6 +29,7 @@ DEBUG = os.getenv("DEBUG", "False") == "True"
|
|||
|
||||
ALLOWED_HOSTS = os.getenv("DJANGO_ALLOWED_HOSTS", "127.0.0.1,localhost").split(",")
|
||||
|
||||
ADMIN_URL = os.getenv("ADMIN_URL", "admin/")
|
||||
|
||||
# Application definition
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ Including another URLconf
|
|||
1. Import the include() function: from django.urls import include, path
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.conf import settings
|
||||
from django.contrib import admin
|
||||
from django.urls import path, include
|
||||
from django.views.generic.base import TemplateView
|
||||
|
@ -21,5 +22,5 @@ from django.views.generic.base import TemplateView
|
|||
urlpatterns = [
|
||||
path('', TemplateView.as_view(template_name="projects.html")),
|
||||
path('accounts/', include('allauth.urls')),
|
||||
path('admin/', admin.site.urls),
|
||||
path(settings.ADMIN_URL, admin.site.urls),
|
||||
]
|
||||
|
|
Ładowanie…
Reference in New Issue