Commit 1d0ff5ad authored by totte's avatar totte
Browse files

Improve documentation on PyCharm settings, add ENGINE to env vars

parent 7184676a
...@@ -37,12 +37,12 @@ ...@@ -37,12 +37,12 @@
- Python Console - Python Console
- Environment variables - Environment variables
- `DEBUG=true` - `DEBUG=true`
- `SECRET_KEY=somethinglong` - `SECRET_KEY=`
- `ALLOWED_HOSTS=localhost` - `ALLOWED_HOSTS=localhost`
- Django Console - Django Console
- Environment variables - Environment variables
- `DEBUG=true` - `DEBUG=true`
- `SECRET_KEY=somethinglong` - `SECRET_KEY=`
- `ALLOWED_HOSTS=localhost` - `ALLOWED_HOSTS=localhost`
- Docker - Docker
- Registry - Registry
...@@ -52,13 +52,13 @@ ...@@ -52,13 +52,13 @@
- Django server - Django server
- Environment variables - Environment variables
- `DEBUG=true` - `DEBUG=true`
- `SECRET_KEY=somethinglong` - `SECRET_KEY=`
- `ALLOWED_HOSTS=localhost` - `ALLOWED_HOSTS=localhost`
- Docker - Docker
- `./docker-compose.yml;` - `./docker-compose.yml;`
- Environment variables - Environment variables
- `DEBUG=true` - `DEBUG=true`
- `SECRET_KEY=somethinglong` - `SECRET_KEY=`
- `ALLOWED_HOSTS=localhost` - `ALLOWED_HOSTS=localhost`
- `ENGINE=django.db.backends.postgresql` - `ENGINE=django.db.backends.postgresql`
- `POSTGRES_DB=` - `POSTGRES_DB=`
...@@ -67,6 +67,19 @@ ...@@ -67,6 +67,19 @@
- `POSTGRES_PORT=` - `POSTGRES_PORT=`
- `POSTGRES_USER=` - `POSTGRES_USER=`
# Settings for deployment
Set the following environment variables in a `.env` file:
```
SECRET_KEY=
ALLOWED_HOSTS=
ENGINE=
POSTGRES_DB=
POSTGRES_HOST=
POSTGRES_PASSWORD=
POSTGRES_PORT=
POSTGRES_USER=
```
# Advice for using Docker # Advice for using Docker
- 1 application or service = 1 container - 1 application or service = 1 container
......
...@@ -28,6 +28,7 @@ services: ...@@ -28,6 +28,7 @@ services:
environment: environment:
- ALLOWED_HOSTS - ALLOWED_HOSTS
- DEBUG - DEBUG
- ENGINE
- POSTGRES_DB - POSTGRES_DB
- POSTGRES_HOST - POSTGRES_HOST
- POSTGRES_PASSWORD - POSTGRES_PASSWORD
......
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