Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
final_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
final_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
Hide 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
dotenv
import
load_dotenv
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR
=
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
load_dotenv
()
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
BASE_DIR
=
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY
=
'django-insecure--4$e*nub=h-)k*y!7kid5dz=3g$f5_n2zn&yv(dmupxd-c=m6)'
SECRET_KEY
=
os
.
getenv
(
'SECRET_KEY'
)
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
ALLOWED_HOSTS
=
[]
# Application definition
INSTALLED_APPS
=
[
'django.contrib.admin'
,
'django.contrib.auth'
,
...
...
@@ -70,9 +52,6 @@ TEMPLATES = [
WSGI_APPLICATION
=
'widget_quintupoltrobol.wsgi.application'
# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.sqlite3'
,
...
...
@@ -81,9 +60,6 @@ DATABASES = {
}
# Password validation
# https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS
=
[
{
'NAME'
:
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'
,
...
...
@@ -100,9 +76,6 @@ AUTH_PASSWORD_VALIDATORS = [
]
# Internationalization
# https://docs.djangoproject.com/en/4.1/topics/i18n/
LANGUAGE_CODE
=
'en-us'
TIME_ZONE
=
'UTC'
...
...
@@ -112,12 +85,7 @@ USE_I18N = True
USE_TZ
=
True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.1/howto/static-files/
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'
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