I'm trying to deploy a Django app from the first time using Heroku. But my app is always returning an application error.
When I check heroku logs --tail I get:
FileNotFoundError: [Errno 2] No such file or directory: '/app/CandiBot/logs/08/16.log'
The tree structure of my project looks like this, I think I missed a folder called myproject/ but I guess the issue is not related to that.
CandiEnv/ (venv)
├── Candiapp/ (app)
│ ├── models.py
│ ├── urls.py
│ ├── views.py
│ ├── ...
│ ├── static/
│ │ └──(empty)
│ └── logs/
│ └── 08/16.log <-- Here is the log file
├── myproject/ (I don't know why I've named it differently)
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├──...
├── manage.py
└── Procfile
Maybe it has to do with my settings.py. The static part looks like this:
STATIC_URL = '/static/'
BASE_DIR= os.path.dirname(os.path.abspath(__file__))
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_DIRS = ( #Not sure it's useful
os.path.join(BASE_DIR, 'static'),
)
What am I missing here?