Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_quintupoltrobol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Matthew Karl David P. Arpas
midterm_quintupoltrobol
Commits
6c98f65f
Commit
6c98f65f
authored
Mar 03, 2023
by
Matthew Karl David P. Arpas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added env file and changed secret key in settings
parent
dc303d8f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
36 deletions
+5
-36
env.py
widget_quintupoltrobol/env.py
+1
-0
settings.py
widget_quintupoltrobol/widget_quintupoltrobol/settings.py
+4
-36
No files found.
widget_quintupoltrobol/env.py
0 → 100644
View file @
6c98f65f
SECRET_KEY
=
'django-insecure--4$e*nub=h-)k*y!7kid5dz=3g$f5_n2zn&yv(dmupxd-c=m6)'
\ No newline at end of file
widget_quintupoltrobol/widget_quintupoltrobol/settings.py
View file @
6c98f65f
"""
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'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment