11π
β
I think the issue is that your static
directory is empty so git doesnβt track it, so when Heroku tries to build your project the directory doesnβt exist and you get that error.
If you add an empty file called .keep
in the static
directory and add it to git then you can work around this issue.
π€D. Evans
2π
For others and the future me: https://github.com/not-kennethreitz/flango/issues/3 π
STATIC_TMP = os.path.join(BASE_DIR, 'static')
STATIC_URL = '/static/'
os.makedirs(STATIC_TMP, exist_ok=True)
os.makedirs(STATIC_ROOT, exist_ok=True)
π€maersu
- [Django]-How to make Router display urls from Multiple apps in Browsable API root view in Django REST Framework?
- [Django]-Python model inheritance and order of model declaration
- [Django]-How to use filter_horizontal on a ForeignKey between two apps using ContentTypes in Django admin?
- [Django]-Gunicorn not running can't connect to sock file
- [Django]-Using django-taggit, is it possible to limit the tags to pre approved values?
Source:stackexchange.com