jazzband/django-hosts

Staticfile Routing

aaronn opened this issue · 0 comments

I use django's staticfiles and media serving during development– but this seems to cause an issue where my main routes for staticfiles and mediafiles are on a subdomain that isn't my default subdomain.

In my configuration:

  • I am using django-rest-framework
  • I have my default django-hosts subdomain set as api,
  • but my staticfiles are hosted on the www subdomain.

How can I get either DRF or django to route the staticfiles / media assets to the correct subdomain?