mysql - Run web application from local machine and host files on external server -
rewrite of same question
i'm building web application using django. have web server holds static files, can do. want run website computer using mamp. on system have mysql database. how tell django fetch static files server , serve them user?
currently computer (in network) can go site , request pages. mamp receives fetches files local directory on hd. want set fetch files origin server.
info on i'm using:
mamp, mysql, apache, django
thanks
if understand correctly, change static_url
in settings.py
server holds static files:
in settings.py:
static_url = 'http://staticserver/path/to/static/on/apache'
(make sure change media_url if needed)
Comments
Post a Comment