Hello,
I try to deploy my website. My host provides the cPanel interface which gives many tools, especially the "Setup Python app" which is a quick way to deploy Python app.
My website is deployed, but all the media / static files are not taken into account.
Here is what I did :
- debug is set to False
- The static folder used during development is under an app called "general". So general -> static -> general -> main.css, ...
- I set the variables as followed :
STATIC_ROOT = BASE_DIR / 'static'
STATIC_URL = '/static/'
MEDIA_ROOT = BASE_DIR / 'media'
MEDIA_URL = '/media/'
- I ran "python manage.py collectstatic" and a new folder in the BASE_DIR of my project called "static" has been created.
I feel like I miss something cause it doesn't work. I suspect the fact that my static folder used under development is part of the "general" app and the path given to the STATIC_ROOT and STATIC_URL are not good...
Any idea ? Thanks in advance.