Installing postgis extension in postgresql database
AnonymousTRIAL
7 months ago
Hi, I have installed Postgresql Database for my Django project and then I connected it in my local machine's console to make migrations then an error occured stating that
psycopg2.errors.FeatureNotSupported: extension "postgis" is not available
DETAIL: Could not open extension control file "/usr/share/postgresql/16/extension/postgis.control": No such file or directory.
HINT: The extension must first be installed on the system where PostgreSQL is running.
so I thought I should've installed postgis first so installed it using https://railway.app/template/postgis and updated my django Database url with the new postgis template's configuration but when I tried to run python manage.py migrate
then it showed
django.db.utils.OperationalError: connection to server at "autorack.proxy.rlwy.net" (35.213.179.112), port 19940 failed: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
so How am I supposed to configure postgis extension in my database? And later I will also add GDAL with it.
1 Replies
7 months ago
I'm sorry but we are unable to assist with deleted projects, feel free to open a new thread if you see this issue again.
Status changed to Closed brody • 7 months ago