This commit is contained in:
Faheed 2025-11-03 12:59:03 +03:00
parent 406ba3b3b6
commit fde53ce2d3
4 changed files with 16 additions and 22 deletions

View File

@ -66,7 +66,7 @@ INSTALLED_APPS = [
SITE_ID = 1 SITE_ID = 1
LOGIN_REDIRECT_URL = 'dashboard' LOGIN_REDIRECT_URL = '/'
ACCOUNT_LOGOUT_REDIRECT_URL = '/' ACCOUNT_LOGOUT_REDIRECT_URL = '/'
@ -155,27 +155,19 @@ DATABASES = {
# AUTH_PASSWORD_VALIDATORS = [
# {
# 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
# },
# {
# 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
# },
# {
# 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
# },
# {
# 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
# },
# ]
# settings.py
AUTH_PASSWORD_VALIDATORS = [ AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{ {
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
}, },
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
] ]
@ -183,8 +175,10 @@ ACCOUNT_LOGIN_METHODS = ['email']
ACCOUNT_SIGNUP_FIELDS = ['email*', 'password1*', 'password2*'] ACCOUNT_SIGNUP_FIELDS = ['email*', 'password1*', 'password2*']
ACCOUNT_UNIQUE_EMAIL = True ACCOUNT_UNIQUE_EMAIL = True
ACCOUNT_EMAIL_VERIFICATION = 'none'
ACCOUNT_USER_MODEL_USERNAME_FIELD = None ACCOUNT_USER_MODEL_USERNAME_FIELD = None
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION = True ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION = True
@ -195,7 +189,7 @@ EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Crispy Forms Configuration # Crispy Forms Configuration
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5" CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
CRISPY_TEMPLATE_PACK = "bootstrapconsole5" CRISPY_TEMPLATE_PACK = "bootstrap5"
# Bootstrap 5 Configuration # Bootstrap 5 Configuration
CRISPY_BS5 = { CRISPY_BS5 = {
@ -236,7 +230,7 @@ STATICFILES_DIRS = [
BASE_DIR / 'static' BASE_DIR / 'static'
] ]
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
MEDIA_ROOT = os.path.join(BASE_DIR, 'media') MEDIA_ROOT = os.path.join(BASE_DIR, 'static/media')
# Default primary key field type # Default primary key field type
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field # https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field

View File

@ -5,7 +5,7 @@ from . import views_integration
from . import views_source from . import views_source
urlpatterns = [ urlpatterns = [
path('dashboard/', views_frontend.dashboard_view, name='dashboard'), path('', views_frontend.dashboard_view, name='dashboard'),
# Job URLs (using JobPosting model) # Job URLs (using JobPosting model)
path('jobs/', views_frontend.JobListView.as_view(), name='job_list'), path('jobs/', views_frontend.JobListView.as_view(), name='job_list'),