Remove split settings files

This commit is contained in:
saqibur 2022-08-15 09:38:11 +06:00
parent 5e86cb98e6
commit cebb308047
7 changed files with 6 additions and 62 deletions

View File

@ -65,13 +65,7 @@ the next big thing our team develops.
│ └── views.py │ └── views.py
├── common # An optional folder containing common "stuff" for the entire project ├── common # An optional folder containing common "stuff" for the entire project
├── config ├── config
│ ├── settings │ ├── settings.py
│ │ ├── base.py
│ │ ├── development.py
│ │ ├── __init__.py
│ │ ├── local.py
│ │ ├── local_template.py
│ │ └── production.py
│ ├── asgi.py │ ├── asgi.py
│ ├── __init__.py │ ├── __init__.py
│ ├── urls.py │ ├── urls.py
@ -142,7 +136,9 @@ Currently we're proposing that major changes to the following, constitutes a new
### `config` ### `config`
* Contains project configuration files, including the primary URL file * Contains project configuration files, including the primary URL file
* Contains settings split into `base`, `local`, `production` and `development`. * ~~Contains settings split into `base`, `local`, `production` and `development`.~~. Update: As environment
specific variables will be handled using environment variables, we've deemed it unnecessary to have
separate settings files.
### `deployments` ### `deployments`

View File

@ -107,3 +107,5 @@ STATIC_URL = 'static/'
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field # https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
DEBUG = True

View File

@ -1,14 +0,0 @@
from .base import *
DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'DB_NAME',
'USER': 'DB_USER',
'PASSWORD': 'DB_PASS',
'HOST': 'DB_HOST',
'PORT': '5432',
}
}

View File

@ -1,14 +0,0 @@
from .base import *
DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'DB_NAME',
'USER': 'DB_USER',
'PASSWORD': 'DB_PASS',
'HOST': 'DB_HOST',
'PORT': '5432',
}
}

View File

@ -1,14 +0,0 @@
from .base import *
DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'DB_NAME',
'USER': 'DB_USER',
'PASSWORD': 'DB_PASS',
'HOST': 'DB_HOST',
'PORT': '5432',
}
}

View File

@ -1,12 +0,0 @@
from .base import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'DB_NAME',
'USER': 'DB_USER',
'PASSWORD': 'DB_PASS',
'HOST': 'DB_HOST',
'PORT': '5432',
}
}