Remove split settings files
This commit is contained in:
parent
5e86cb98e6
commit
cebb308047
12
README.md
12
README.md
|
@ -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`
|
||||||
|
|
|
@ -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
|
|
@ -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',
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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',
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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',
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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',
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue