Versiunea funcțională EUMI
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
@@ -14,9 +14,24 @@ 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.contrib import admin
|
||||
from django.urls import path
|
||||
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("admin/", admin.site.urls),
|
||||
# Rutele standard Django pentru login/logout
|
||||
path("accounts/", include("django.contrib.auth.urls")),
|
||||
# Rutele aplicațiilor
|
||||
# path("equipment/", include("equipment.urls")),
|
||||
path("users/", include("users.urls")),
|
||||
path("interventions/", include("interventions.urls")),
|
||||
# Poți seta temporar echipamentele ca pagină de start dacă dorești,
|
||||
# până vom construi Dashboard-ul
|
||||
path("", include("equipment.urls")),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
||||
Reference in New Issue
Block a user