This commit is contained in:
@@ -5,9 +5,49 @@ test
|
|||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|
||||||
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
### Create virtual env
|
||||||
|
|
||||||
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
In the main directory, create a virtual env
|
||||||
|
|
||||||
|
```
|
||||||
|
python3 -m venv .env
|
||||||
|
```
|
||||||
|
|
||||||
|
to activate it :
|
||||||
|
|
||||||
|
```
|
||||||
|
source .env/bin/activate
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Env variables inside the .env file
|
||||||
|
|
||||||
|
Edit .env/bin/activate
|
||||||
|
|
||||||
|
In the deactivate () function, append at the end:
|
||||||
|
```
|
||||||
|
# unset required variables
|
||||||
|
unset DB_HOST
|
||||||
|
unset DB_PORT
|
||||||
|
unset DB_USERNAME
|
||||||
|
unset DB_PASSWORD
|
||||||
|
unset DB_DATABASE
|
||||||
|
unset ALLOWED_HOSTS
|
||||||
|
unset DEBUG
|
||||||
|
```
|
||||||
|
|
||||||
|
at the end of the file add the DB value for testing:
|
||||||
|
|
||||||
|
```
|
||||||
|
export DB_HOST=localhost
|
||||||
|
export DB_PORT=5432
|
||||||
|
export DB_USERNAME=postgres
|
||||||
|
export DB_PASSWORD=example
|
||||||
|
export DB_DATABASE=cloudmanager
|
||||||
|
export CUSTOM_DB_DATABASE=cloudmanager
|
||||||
|
export ALLOWED_HOSTS="0.0.0.0,localhost,127.0.0.1"
|
||||||
|
export DEBUG=true
|
||||||
|
```
|
||||||
|
|
||||||
## Add your files
|
## Add your files
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user