I have a Django app running on a server and I would like to continue working on it locally with the runserver command. My problem concern the use of common static and media files. The media folder content changing frequently in production I have to download those media files from the server each time I want to dev locally and add those to the MEDIA_ROOT path on my computer.
The database is common to both dev and production environment since it is a MySQL host on my server.
How can I tell Django in local mode to lookup static and media files on a remote url from my domain name instead of localhost?
Like https://example.com/media/ instead of :
https://127.0.0.1:8000/media/