mirror of
https://github.com/Llloooggg/WhereToGo.git
synced 2026-03-05 20:26:23 +03:00
Добавлен index
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{% extends "account/base.html" %}
|
||||
{% extends "common/base.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand">WhereToGo</a>
|
||||
<a class="navbar-brand" href="/">WhereToGo</a>
|
||||
<div class="collapse navbar-collapse" id="navbarNavDropdown">
|
||||
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
||||
</ul>
|
||||
|
||||
1
wheretogo/templates/common/index.html
Normal file
1
wheretogo/templates/common/index.html
Normal file
@@ -0,0 +1 @@
|
||||
{% extends "common/base.html" %}
|
||||
@@ -125,4 +125,6 @@ AUTHENTICATION_BACKENDS = [
|
||||
"allauth.account.auth_backends.AuthenticationBackend",
|
||||
]
|
||||
|
||||
LOGIN_REDIRECT_URL = "/"
|
||||
|
||||
ACCOUNT_EMAIL_REQUIRED = True
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from django.contrib import admin
|
||||
from django.urls import path, include
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
@@ -7,4 +8,5 @@ from django.conf.urls.static import static
|
||||
urlpatterns = [
|
||||
path("admin/", admin.site.urls),
|
||||
path("accounts/", include("allauth.urls")),
|
||||
path("", TemplateView.as_view(template_name="common/index.html")),
|
||||
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
|
||||
Reference in New Issue
Block a user