Added env file and changed secret key in settings

parent dc303d8f
SECRET_KEY = 'django-insecure--4$e*nub=h-)k*y!7kid5dz=3g$f5_n2zn&yv(dmupxd-c=m6)'
\ No newline at end of file
"""
Django settings for widget_quintupoltrobol project.
Generated by 'django-admin startproject' using Django 4.1.6.
For more information on this file, see
https://docs.djangoproject.com/en/4.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.1/ref/settings/
"""
from pathlib import Path from pathlib import Path
from dotenv import load_dotenv
# Build paths inside the project like this: BASE_DIR / 'subdir'. load_dotenv()
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = os.getenv('SECRET_KEY')
SECRET_KEY = 'django-insecure--4$e*nub=h-)k*y!7kid5dz=3g$f5_n2zn&yv(dmupxd-c=m6)'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = [] ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [
'django.contrib.admin', 'django.contrib.admin',
'django.contrib.auth', 'django.contrib.auth',
...@@ -70,9 +52,6 @@ TEMPLATES = [ ...@@ -70,9 +52,6 @@ TEMPLATES = [
WSGI_APPLICATION = 'widget_quintupoltrobol.wsgi.application' WSGI_APPLICATION = 'widget_quintupoltrobol.wsgi.application'
# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.sqlite3',
...@@ -81,9 +60,6 @@ DATABASES = { ...@@ -81,9 +60,6 @@ DATABASES = {
} }
# Password validation
# https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [ AUTH_PASSWORD_VALIDATORS = [
{ {
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
...@@ -100,9 +76,6 @@ AUTH_PASSWORD_VALIDATORS = [ ...@@ -100,9 +76,6 @@ AUTH_PASSWORD_VALIDATORS = [
] ]
# Internationalization
# https://docs.djangoproject.com/en/4.1/topics/i18n/
LANGUAGE_CODE = 'en-us' LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC' TIME_ZONE = 'UTC'
...@@ -112,12 +85,7 @@ USE_I18N = True ...@@ -112,12 +85,7 @@ USE_I18N = True
USE_TZ = True USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.1/howto/static-files/
STATIC_URL = 'static/' STATIC_URL = 'static/'
# Default primary key field type
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment