I have two apps under different URLs. But the static file dir is the same. So I'd need to tell to django that when /myapp/static/jpg.jpg
is asked it would redirect it to /static/jpg.jpg
and would do the same for myotherapp/static/jpg.jpg
. This is simple todo in apache conf - just map /myapp/static/
to /static/
.
But can it be done in django?
Better example.
I have www.myapp.com
and www.myotherapp.com
. They are on my server as localhost/myapp
and localhost/myotherapp/
and static files are on localhost/static
. So I can't access the static
uri with URL