My question is as follows, I'm trying to upload an FTP site on DreamHost, but I do not know what the root folder is, nor did I find the public_html ...
My question is as follows, I'm trying to upload an FTP site on DreamHost, but I do not know what the root folder is, nor did I find the public_html ...
The "public" folder should be used to serve the static files of the application, in this case it is necessary to define the STATIC_ROOT and MEDIA_ROOT in folders within the public, and STATIC_URL and MEDIA_URL considering the path from the public. p>
settings / dreamhost.py
STATIC_ROOT = os.path.join(HOME_DIR, 'exemplo.com', 'public', 'static')
STATIC_URL = '/static/'
MEDIA_ROOT = os.path.join(HOME_DIR, 'exemplo.com', 'public', 'media')
MEDIA_URL = '/media/'
As above, these folders will be in /home/user/example/example.com/public/static and / public / media, but their URL is just / static and / media.