Skip to content

Commit

Permalink
update README (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored Oct 7, 2023
1 parent b499f6a commit 3d74989
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,27 @@ docker compose up --build -d
docker compose exec django python manage.py collectstatic --no-input
docker compose exec django python manage.py migrate --no-input

# A convenience start-up Django command is there to populate the database with testdata for each app:
# A convenience start-up Django command is there
# to populate the database with testdata
docker compose exec django python manage.py populate_users
docker compose exec django python manage.py populate_data
```
After waiting little you'll be able to access all collections at http://localhost/oapif/collections.
After waiting little you'll be able to access all collections at http://0.0.0.0:7180/oapif/collections.

Three users are provided out of the box; they can be logged in with through basic authentication; all `123` for password:
- `demo_viewer`
- `demo_editor`
- `admin`

As expected `admin` can access Django Admin at http://localhost/admin.
As expected `admin` can access Django Admin at http://0.0.0.0:7180/admin.

## Use from QGIS

When up and running you can access the REST API from QGIS like this:

- Go to `Layers` > `Add layer` > `Add WFS Layer...`
- Create a new connection
- URL: `https://localhost/oapif/`
- URL: `https://0.0.0.0:7180/oapif/`
- Version: `OGC API - Features`
- Click OK and ignore choose to ignore the invalid certificate error and store the exception
- You should see the two layers in the list, select them and choose `add`.
Expand Down
2 changes: 1 addition & 1 deletion src/tests/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.5 on 2023-10-05 19:10
# Generated by Django 4.2.5 on 2023-10-06 08:04

import uuid

Expand Down

0 comments on commit 3d74989

Please sign in to comment.