heroku / django-heroku

[DEPRECATED] Do not use! See https://github.com/heroku/django-heroku/issues/56
BSD 3-Clause "New" or "Revised" License
458 stars 139 forks source link

BASE_DIR setting not found #22

Open orzarchi opened 6 years ago

orzarchi commented 6 years ago

Seems like this project has an implicit dependency on BASE_DIR being defined in settings.py. While this is the case in the default project created by django-admin, it doesn't appear, for example, in the popular django cookie-cutter project.

mariomoraing commented 6 years ago

I Have the same problem. When I run the migrate command, the console shows me KeyError: 'BASE_DIR' message.

mariomoraing commented 6 years ago

Well, I put the .settings(locals()) at the end of settings.py. Sorry but I did not understand the "at the very bottom" expression.

SanchayGupta97 commented 5 years ago

@mariomoraing thx placing the django_heroku.settings(locals()) at the very end worked