Skip to content

Commit

Permalink
settings: Make it easier to run in development on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Dec 10, 2023
1 parent 4ab03c4 commit 790bbb7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
To run `PYTHONPATH=$PYTHONPATH:$PWD django-admin.py migrate --settings settings --noinput`.
"""
import os

SECRET_KEY = 'x'

Expand Down Expand Up @@ -42,3 +43,10 @@
},
},
]

DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

if 'GDAL_LIBRARY_PATH' in os.environ:
GDAL_LIBRARY_PATH = os.getenv('GDAL_LIBRARY_PATH')
if 'GEOS_LIBRARY_PATH' in os.environ:
GEOS_LIBRARY_PATH = os.getenv('GEOS_LIBRARY_PATH')

0 comments on commit 790bbb7

Please sign in to comment.