I’ve got a project that runs on Heroku from a Dockerfile and heroku.yml. The site generally works, but I am having trouble with static files. collectstatic is run when building the pack. If I set DEBUG to True, it finds the files. I’m trying to use whitenoise but not sure why it’s not working. It sounds so simple so I’m
Tag: heroku
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
Separating development and production parts of django project
I’m building a site that relies on the output of a machine learning algorithm. All that is needed for the user-facing part of the site is the output of the algorithm (class labels for a set of items), which can be easily stored and retrieved from the django models. The algorithm could be run once a day, and does not
Django: Deploying an application on Heroku with sqlite3 as the database
I want to deploy an application with sqlite3 as the database on Heroku. However, it seems to be that Heroku doesn’t support applications with sqlite3 as the database. Is it true? Is there no way to deploy my sqlite3-backed application on Heroku? PS: I have successfully deployed my application using PythonAnywhere, but would now like to know whether there’s any
Can’t access Postgres DB on Heroku app
I have a Python 2.7 / Flask app running on Heroku that scrapes data and I now want to store that information in a database. I’ve tried to follow tutorials like this one and apply this to my case but I can’t get it to work. I have created & promoted my postgres database successfully on heroku. I am fairly
Heroku: Run a Rails application with a Python script on the same instance
I have a Python script in the /app/bin directory of my Rails app that contains a requirements.txt file that includes all of the dependencies it relies on. How do I get it to run on the same Heroku instance that my Rails app currently runs on (my Rails app call the python script occasionally). Here’s what I’ve tried so far:
How to run python script inside rails application in heroku?
I have a rails application hosted in heroku. I also wrote a web scraper using scrapy in python. I need to run the python script from the rails application in heroku,I will explain with an example. Eg:The user will input the url to scrape in my rails app.Then the rails app give control to python script to scrape data which
Django + Heroku: Out of Memory problems
So this is my first time deploying a django instance on Heroku. My site has had 1000 visits so far and 600 unique visits. We get about 60-200 visits per day. The link is https://socialspark.spuro.org/ Today, 6 days into being live – our site is running into a lot of memory issues. I.E., cannot allocate dyno process or, cannot allocate
Python-Tornado on Heroku
I am trying to deploy Tornado on Heroku. I am able to run a simple “hello world” app on using this method: http://kzk9.net/deploying-tornado-on-heroku-mac-os-x But while trying Tornado demo-app “chatdemo”, the server is crashing with following logs: Anybody has any idea whats wrong? Answer Check your procfile and requirements.txt. If anyone is looking, here is one working example of same official