--- /dev/null
+asgiref==3.5.2
+Django==3.2.15
+django-braces==1.15.0
+django-crispy-forms==1.14.0
+djangorestframework==3.14.0
+djangorestframework-simplejwt==5.2.0
+mysqlclient==2.1.1
+PyJWT==2.5.0
+pytz==2022.2.1
+sqlparse==0.4.3
+typing_extensions==4.3.0
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
+import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
- 'frontend',
+ 'crispy_forms',
+ 'sistema',
+ 'utenti',
+ 'api',
]
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
+AUTHENTICATION_BACKENDS = [
+ "django.contrib.auth.backends.ModelBackend",
+]
+
+
ROOT_URLCONF = 'socoin_atlas.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [BASE_DIR / 'templates']
+ 'DIRS': [os.path.join(BASE_DIR, '/templates')]
,
'APP_DIRS': True,
'OPTIONS': {
# Internationalization
# https://docs.djangoproject.com/en/3.2/topics/i18n/
-LANGUAGE_CODE = 'en-us'
+ANGUAGE_CODE = 'en-us'
-TIME_ZONE = 'UTC'
+TIME_ZONE = 'Europe/Rome'
USE_I18N = True
# https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL = '/static/'
+STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
+
+
+CLIENTI_GROUPS = 'CLIENTI'
+TOUR_OPERATOR_GROUPS = 'TOUR_OPERATOR'
+ADMIN_GROUPS = 'ADMIN'
\ No newline at end of file