From 885ea9b473bcfa1eb4f9ea14ffe46d5443b0c6e5 Mon Sep 17 00:00:00 2001 From: ssorin Date: Wed, 13 Nov 2024 10:16:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20(dashboard)=20rebase=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dashboard/apps/dashboard/__init__.py | 0 src/dashboard/apps/dashboard/settings.py | 131 ----------------------- src/dashboard/pyproject.toml | 2 +- 3 files changed, 1 insertion(+), 132 deletions(-) delete mode 100644 src/dashboard/apps/dashboard/__init__.py delete mode 100644 src/dashboard/apps/dashboard/settings.py diff --git a/src/dashboard/apps/dashboard/__init__.py b/src/dashboard/apps/dashboard/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/src/dashboard/apps/dashboard/settings.py b/src/dashboard/apps/dashboard/settings.py deleted file mode 100644 index 7ed5af86..00000000 --- a/src/dashboard/apps/dashboard/settings.py +++ /dev/null @@ -1,131 +0,0 @@ -""" -Django settings for dashboard project. - -Generated by 'django-admin startproject' using Django 5.1.2. - -For more information on this file, see -https://docs.djangoproject.com/en/5.1/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/5.1/ref/settings/ -""" -import environ -import os - -from pathlib import Path - - -# Build paths inside the project like this: BASE_DIR / 'subdir'. -BASE_DIR = Path(__file__).resolve().parent.parent - -# django-environ integration -env = environ.Env() -env.prefix = 'DASHBOARD_' - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = env.str("SECRET_KEY") - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = env.str("DEBUG") - -#'DASHBOARD_ALLOWED_HOSTS' should be a single string of hosts with a space between each. -ALLOWED_HOSTS = env.list("ALLOWED_HOSTS") - -# Application definition -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'whitenoise.middleware.WhiteNoiseMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', -] - -ROOT_URLCONF = 'dashboard.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'dashboard.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/5.1/ref/settings/#databases -DATABASES = { - # read os.environ['DATABASE_URL'] and raises - # ImproperlyConfigured exception if not found - # - # The db() method is an alias for db_url(). - 'default': env.db("DATABASE_URL"), -} - - - -# Password validation -# https://docs.djangoproject.com/en/5.1/ref/settings/#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.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/5.1/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/5.1/howto/static-files/ - -STATIC_URL = 'static/' -STATIC_ROOT = BASE_DIR / "static" - -# Default primary key field type -# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field - -DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/src/dashboard/pyproject.toml b/src/dashboard/pyproject.toml index a40e381b..f95ac4c2 100644 --- a/src/dashboard/pyproject.toml +++ b/src/dashboard/pyproject.toml @@ -1,5 +1,5 @@ # -# QualiCharge Open Data package +# QualiCharge package # [project] name = "qualicharge-dashboard"