I'm attempting to setup Amazon S3 to use for static and media files on my 
first Django app on Heroku. The process has gone fairly smooth, but when 
running ./manage.py collectstatic to copy my static files to the AS3 
bucket, I receive the following error:

File "manage.py", line 12, in <module>
      import settings
      File "/Users/me/djangoprojects/project/project/settings.py", line 
165, in <module>
      EMAIL_HOST_USER = os.environ['SENDGRID_USERNAME']
      File "/Users/me/djangoprojects/env/bin/../lib/python2.7/UserDict.py", 
line 23, in __getitem__
      raise KeyError(key)
      KeyError: 'SENDGRID_USERNAME'


And this is the sendgrid setting: 
    EMAIL_HOST = 'smtp.sendgrid.net'
    EMAIL_HOST_USER = os.environ['SENDGRID_USERNAME']
    EMAIL_HOST_PASSWORD = os.environ['SENDGRID_PASSWORD']
    EMAIL_PORT = 587
    EMAIL_USE_TLS = True

Apparently, this has to do with setting environment variables, which i did 
within Heroku:

https://devcenter.heroku.com/articles/django-assets

The problem: it didn't work. I still get the same error and the static 
files will not collect to send to AS3.

Any insight into this problem? I've been working at this for hours and have 
had no success.

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

Reply via email to