17 lines
477 B
Markdown
17 lines
477 B
Markdown
|
|
## how to set up postgis
|
||
|
|
|
||
|
|
|
||
|
|
use [docker-postgis](https://github.com/kartoza/docker-postgis)
|
||
|
|
|
||
|
|
|
||
|
|
#### setting docker-postgis to use django unit testing
|
||
|
|
|
||
|
|
|
||
|
|
1. get into the running docker shell
|
||
|
|
2. open postgresql client as postgres user (you have to do this from the command line in the container as you cannot do it remotely)
|
||
|
|
3. ALTER ROLE \<user_name\> SUPERUSER;
|
||
|
|
4. set \<user_name> as admin
|
||
|
|
|
||
|
|
now the admin can run the tests
|
||
|
|
|
||
|
|
`sudo docker exec -it minyanfinder_development_db bash`
|