Skip to content

Commit 3fde901

Browse files
committed
fix local dev with 2nd step
1 parent 771c885 commit 3fde901

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

articles/app-service/tutorial-python-postgresql-app.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,21 @@ cd msdocs-django-postgresql-sample-app
5757

5858
-----
5959

60-
Create an *.env* file as shown below using the *.env.sample* file as a guide. Set the value of `DBNAME` to the name of an existing database in your local PostgreSQL instance. Set the values of `DBHOST`, `DBUSER`, and `DBPASS` as appropriate for your local PostgreSQL instance. Set the value for `SECRET_KEY` to the same value used in the App Service app settings.
60+
Create an *.env* file as shown below using the *.env.sample* file as a guide. Set the value of `DBNAME` to the name of an existing database in your local PostgreSQL instance. Set the values of `DBHOST`, `DBUSER`, and `DBPASS` as appropriate for your local PostgreSQL instance.
6161

6262
```
6363
DBNAME=<database name>
6464
DBHOST=<database-hostname>
6565
DBUSER=<db-user-name>
6666
DBPASS=<db-password>
67-
SECRET_KEY=<secret key>
67+
```
68+
69+
Create a SECRET_KEY value for your app by running the following command at a terminal prompt: `python -c 'import secrets; print(secrets.token_hex())'`.
70+
71+
Set the returned value as the value of `SECRET_KEY` in the .env file.
72+
73+
```
74+
SECRET_KEY=<secret-key>
6875
```
6976

7077
Create a virtual environment for the app:

0 commit comments

Comments
 (0)