Skip to content

Commit 7aeff0c

Browse files
committed
readme
1 parent 9e201f7 commit 7aeff0c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Django PostgresML example
2+
3+
## Setup
4+
5+
This example application requires a PostgreSQL database with the PostgresML and pgvector extensions installed. The easiest way to get one is to sign up
6+
for a free database on [postgresml.org](https://postgresml.org).
7+
8+
9+
### Setting `DATABASE_URL`
10+
11+
In your shell, export the `DATABASE_URL` variable with the connection string to your database. For example:
12+
13+
```bash
14+
export DATABASE_URL=postgres://postgres:[email protected]:5432/postgres
15+
```
16+
17+
### Running the app
18+
19+
```bash
20+
./manage migrate
21+
./manage runserver
22+
```

0 commit comments

Comments
 (0)