You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ provide the database locally with the commands below (taken from
100
100
Fetch the container with: `podman pull docker.io/library/postgres`. Afterwards you can see it listed
101
101
with `podman images`.
102
102
103
-
Start the container with: `podman run -dt --name my-postgres -e POSTGRES_PASSWORD=1234 -p 5432:5432 postgres`
103
+
Start the container with: `podman run -dt --name my-postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 postgres`
104
104
105
105
Connect to the db with `psql` using `podman exec -it my-postgres bash`. Then connect with user
106
106
`postgres` which is the default of the postgres container. Here's a full example:
@@ -116,21 +116,28 @@ Did not find any relations.
116
116
postgres=#
117
117
```
118
118
119
-
4.Configure the Python App to Use Postgresql
119
+
4.Set the `APP_KEY`
120
120
121
-
By default, the app uses environment variable for [database settings](https://github.com/pulp/analytics.pulpproject.org/blob/01c491eee833c8dc3513e3b56c2f349511bb162e/app/settings.py#L86-L90)
122
-
and [`SECRET_KEY`](https://github.com/pulp/analytics.pulpproject.org/blob/01c491eee833c8dc3513e3b56c2f349511bb162e/app/settings.py#L24).
123
-
Set these environment variables like this:
121
+
The app uses an environment variable `APP_KEY` to specify the Django `SECRET_KEY`[here](https://github.com/pulp/analytics.pulpproject.org/blob/dev/app/settings.py#L25).
If using the default values of the postgresql image this isn't needed, but optionally, if you want
131
+
to specify db connection info that also happens as environment variables [here](https://github.com/pulp/analytics.pulpproject.org/blob/dev/app/settings.py#L104-L107).
0 commit comments