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

Add media_root attribute for sites served on multiple domains #12

Closed
wants to merge 5 commits into from

Conversation

crsven
Copy link

@crsven crsven commented Aug 21, 2011

Similar to pull request #10, but easier for the use case of someone serving media files from a different domain. Example: Apache serving pages at www.domain.com and Nginx serving media on media.domain.com.

By setting a media_root attribute, all CSS files will be processed using the media_root and HTML will be processed with the normal root.

Also included:

  • Test for the media_root attribute. I didn't want to mess with your directory structure too much to provide a separate media_root folder, but if you have a suggestion for doing this better, let me know and I'll update it.
  • Documentation update
  • Updates to require statements in tests. I was having trouble running them from the root level on my machine. I think this should work more universally.
  • A little whitespace cleanup :)

@crsven crsven closed this Dec 9, 2022
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

Successfully merging this pull request may close these issues.

1 participant