docs: change line number of DATABASES
This commit is contained in:
parent
0ac83b6c09
commit
23162fec2e
|
@ -11,7 +11,7 @@ Python 3x, pip, Django, Postgresql
|
||||||
1. Install Python 3.x and Pip. Use virtual environment if your host has older python version and it cant be upgraded.
|
1. Install Python 3.x and Pip. Use virtual environment if your host has older python version and it cant be upgraded.
|
||||||
2. Install PostgreSQL or some other Django-friendly database engine. Also you might want to install PgAdmin or any other administrative tool for your database.
|
2. Install PostgreSQL or some other Django-friendly database engine. Also you might want to install PgAdmin or any other administrative tool for your database.
|
||||||
3. Go to your charts storage folder and run `pip install -r requirements.txt`. Unix users : you have to have python-dev package to install `psycopg2`.
|
3. Go to your charts storage folder and run `pip install -r requirements.txt`. Unix users : you have to have python-dev package to install `psycopg2`.
|
||||||
4. Create an empty database in Postgres (using either command line or `pgadmin`). Go to `charting_library_charts` folder and set up your database connection in `settings.py` (see `DATABASES` @ line #12).
|
4. Create an empty database in Postgres (using either command line or `pgadmin`). Go to `charting_library_charts` folder and set up your database connection in `settings.py` (see `DATABASES` @ line #16).
|
||||||
5. Run `python manage.py migrate`. This will create database schema without any data.
|
5. Run `python manage.py migrate`. This will create database schema without any data.
|
||||||
6. Generate a secret key by running `python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'`
|
6. Generate a secret key by running `python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'`
|
||||||
7. Set your secret key to your environment variables `export SECRET_KEY='...'`
|
7. Set your secret key to your environment variables `export SECRET_KEY='...'`
|
||||||
|
|
Loading…
Reference in New Issue