Skip to content

Commit

Permalink
Release v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EnTeQuAk committed Dec 2, 2011
1 parent b91b80e commit f724b07
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions development_settings.py
Expand Up @@ -7,3 +7,6 @@
'NAME': 'dev.db'
}
}



8 changes: 6 additions & 2 deletions sm/core/templating.py
Expand Up @@ -12,8 +12,12 @@


def url_for(viewname, *args, **kwargs):
return urlresolvers.reverse(viewname, args=args or None,
kwargs=kwargs or None)
endpoint = urlresolvers.reverse(viewname, args=args or None,
kwargs=kwargs or None)
if viewname == 'static':
endpoint = settings.STATIC_URL + endpoint[7:]

return endpoint


def render_template(template_name, context, flash=False):
Expand Down
8 changes: 7 additions & 1 deletion sm/settings.py
Expand Up @@ -67,7 +67,7 @@

# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
STATIC_URL = '/static/'
STATIC_URL = 'http://social-music.s3.amazonaws.com'

# Additional locations of static files
STATICFILES_DIRS = (
Expand All @@ -87,6 +87,12 @@
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
)

STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'

AWS_ACCESS_KEY_ID = 'AKIAJICYGPGWBJU77EWQ'
AWS_SECRET_ACCESS_KEY = '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'
AWS_STORAGE_BUCKET_NAME = 'social-music'

# Make this unique, and don't share it with anybody.
SECRET_KEY = 'zsm&qrh5d1m-bqrb=b*kkzx)ysn25@iknc*my0v_gx@by7(%i9'

Expand Down

0 comments on commit f724b07

Please sign in to comment.