Deploy on heroku with Geodjango/ postgis

92 views
Skip to first unread message

Samuel Nogueira

unread,
May 27, 2020, 8:45:30 AM5/27/20
to django...@googlegroups.com
Hi guys. Does anyone have/know a walkthrough for deploying my django application using geodjango and postgres with postgis on heroku? I was struggling with that yesterday until I've given up.
I was developing my django app in win10, with python 3.7.7.

Akinfolarin Stephen

unread,
May 27, 2020, 9:01:40 AM5/27/20
to Django users


On Thursday, May 28, 2020 at 2:45:30 AM UTC+14, Samuel Nogueira wrote:
Hi guys. Does anyone have/know a walkthrough for deploying my django application using geodjango and postgres with postgis on heroku? I was struggling with that yesterday until I've given up.
I was developing my django app in win10, with python 3.7.7.


have you check your error log
 

Samuel Nogueira

unread,
May 27, 2020, 4:54:39 PM5/27/20
to django...@googlegroups.com

yeah. In my log erros happened 2 errors. First it seems to be with gunicorn and the second a KeyError with MIDDLEWARE_CLASSES

 

I don’t  have gunicorn in my machine, but i put it in the requirements.txt file with the version 20.0.4 so that heroku could collect it

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6a70a76e-3a9e-4251-9207-76cabcb823d7%40googlegroups.com.

 

Mujahid Abbas

unread,
May 27, 2020, 6:18:04 PM5/27/20
to Django users
Could you share you GitHub repo so that I'll help you

Samuel Nogueira

unread,
May 27, 2020, 7:03:23 PM5/27/20
to django...@googlegroups.com

Sure! Here it is: https://github.com/SamuelNoB/Primeiro-Projeto-Django-REST

 

Sorry if my requirements.txt is messy. I didn’t set properly my venv and it pulled all packages of my system

--

You received this message because you are subscribed to the Google Groups "Django users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages