Skip to content
This repository has been archived by the owner on Oct 11, 2021. It is now read-only.

Amazon S3 and STATIC_URL #31

Closed
hoorzad opened this issue Jan 23, 2013 · 1 comment
Closed

Amazon S3 and STATIC_URL #31

hoorzad opened this issue Jan 23, 2013 · 1 comment

Comments

@hoorzad
Copy link

hoorzad commented Jan 23, 2013

Hi,

I'm a newbie. Sorry if my question is too obvious.

If calling format is set to subdomain, shouldn't static url be something like this:

STATIC_URL = "https://%s.s3.amazonaws.com/static/" % AWS_STORAGE_BUCKET_NAME

Also, why isn't MEDIA_URL defined?

@rdegges
Copy link
Owner

rdegges commented Jan 23, 2013

It's actually been a little while since I've looked at this--but if you try it out the way it is, you'll see that it works. I can't remember exactly why though.

Also: MEDIA_URL has a default value (provided by Django). MEDIA_URL is used to point to user-uploaded content. Since many projects don't require user-uploaded content, and django-skel is meant to work with 'just the basics', we don't include anything for that.

@rdegges rdegges closed this as completed Jan 23, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants