Skip to content

Staticfile Routing #118

@aaronn

Description

@aaronn

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions