Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staticfile Routing #118

Open
aaronn opened this issue Sep 7, 2020 · 0 comments
Open

Staticfile Routing #118

aaronn opened this issue Sep 7, 2020 · 0 comments

Comments

@aaronn
Copy link

aaronn commented Sep 7, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant