Versiunea funcțională EUMI

This commit is contained in:
2026-08-31 16:10:46 +03:00
parent 75bcef3095
commit ce5028a27f
58 changed files with 4271 additions and 98 deletions
+15 -2
View File
@@ -63,7 +63,7 @@ ROOT_URLCONF = "eumi__v4_project.urls"
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [],
"DIRS": [BASE_DIR / "templates"],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
@@ -115,7 +115,7 @@ AUTH_PASSWORD_VALIDATORS = [
# Internationalization
# https://docs.djangoproject.com/en/6.1/topics/i18n/
LANGUAGE_CODE = "ro"
LANGUAGE_CODE = "en-us"
TIME_ZONE = "Europe/Bucharest"
@@ -128,6 +128,9 @@ USE_TZ = True
# https://docs.djangoproject.com/en/6.1/howto/static-files/
STATIC_URL = "static/"
STATICFILES_DIRS = [
BASE_DIR / "static",
]
# Email
@@ -138,3 +141,13 @@ MAILERS = {
"BACKEND": "django.core.mail.backends.console.EmailBackend",
},
}
MEDIA_URL = "media/"
MEDIA_ROOT = BASE_DIR / "media"
# Setări pentru Autentificare
LOGIN_REDIRECT_URL = "/"
LOGOUT_REDIRECT_URL = (
"/accounts/login/" # După logout, se întoarce la formularul de conectare
)