Skip to content

Tag: django

Deploying heroku – Push failed

I need some help to solve this. I don’t have much experience with Heroku, this is my first time doing it but I need to deploy some app really quickly. I’ve tried to disable collectstatic with heroku config:set DEBUG_COLLECTSTATIC=1 -a name_of_app But it haven’t made any change. Can anyone he…

Check file extension in Django FileField

I need to run a different code depending on the extension of the file. This is a simplified version of the model: This is the part of the view that I have the problem: I don’t know how I should write this last condition above. With this version above, I get the error: The ‘python’ engine can…