I have two types of content static content and media content.
I have two apps configured on my webfaction associated with my website these are called
static_app
and static_media_app
.
This is the configuration I use
STATIC_URL = 'http://mywebsite.com/static/'
STATIC_ROOT = '/home/admin/webapps/static_app'
STATICFILES_DIRS = (
'/home/admin/webapps/mainFolder/mainApp/static',
)
PROJECT_PATH = os.path.join(BASE_DIR, 'static')
#---------------------------------------------------------------------------
MEDIA_URL = 'http://mywebsite.com/media/'
MEDIA_ROOT = '/home/admin/webapps/static_media_app'
Now whenever I run ./manage.py collectstatic
the content from my media gets copied into static_app
and I wanted that to be copied in static_media_app
folder. Does webfaction differentiate between media and static content ? I have read this post and it states that I would have to create a media folder for my media content just like for my static content. I decided to go with this way because I was having trouble serving my media content with DEBUG = FALSE
asked
14 Jun '17, 19:47
zedan185
11●1●5
accept rate:
0%