I have successfully deployed a webapp to Heroku. However, my file IO operations are not happening because Heroku is unable to recognize the files in the folders. My folder structure is: When I use df = pd.read_csv(‘userdata.csv’) all works fine, because this is in the root directory as the main file and Heroku is able to find it, and allow
Tag: deployment
You must set settings.ALLOWED_HOSTS if DEBUG is False. Django-r-f
I want to prepare the server for deployment and this is the setup. settings.py is split into dev.py and prod.py in settings.py at the bottom ALLOWED_HOSTS = [] I also have tried ALLOWED_HOSTS = [‘*’] dev.py wsgy.py When I import settings in the manage.py shell, the settings.DEBUG = False .. why? How to make wsgi.py read the correct file? Answer
Django: Not Found static/admin/css
I just deployed my first Django app on Heroku but I notice that it doesn’t have any CSS like when I runserver on the local machine. I know there’s something wrong with static files but I don’t understand much about it even when I already read the docs. I can do python3 manage.py collectstatic to create a static folder but
How to make uwsgi shut down if application failed to load?
I run my uwsgi in the simplest way possible, as a process managed by upstart, no emperor mode or anything. This is what I get if application fails on startup for some reason: I have no use for this mode, and would like it to shut down completely, so my upstart job shows as stopped. How can I do this?