-
Create a docker image with this command:
$ docker container create -p 5432:5432 -v $HOME/DockerVolumes/wherethefuck/db --name=postgis_world \ -e POSTGRES_USER=postgres -e POSTGRES_PASS=my-insecure-dev-password -e POSTGRES_DBNAME=world \ -e POSTGRES_MULTIPLE_EXTENSIONS=postgis kartoza/postgis
You will perhaps need to customize some parts of this command, like:
i. The host: perhaps you will not mount this docker image and, instead, use an external database service (e.g. Amazon).
ii. The port: instead of5432:5432
you may usewhatever:5432
providedwhatever
is a valid an available port number.
iii. The docker container's name.
iv. ThePOSTGRES_USER
,POSTGRES_PASS
andPOSTGRES_DBNAME
provided you use the same names in the django settings.
v. Adding comma-separated toPOSTGRES_MULTIPLE_EXTENSIONS
provided you know what you're doing. -
work in a Python 3.7 / Django 2.2 virtual environment. Add these packages:
Django==2.2.4 django-category==2.0.1 django-map-widgets==0.2.2 psycopg2==2.8.3 Pillow==6.1.0
And other you'd need.
-
Install GDAL library! This part is troublesome and depends on the operating system.
-
Run
python manage.py collectstatic
for the google maps widget to work. -
For the google maps field, add settings according to this documentation.
-
Notifications
You must be signed in to change notification settings - Fork 0
A simple geodjango project meant to work as API for simple mobile lookup apps
License
luismasuelli/wherethefuck
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A simple geodjango project meant to work as API for simple mobile lookup apps
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published