Skip to content

cannot push this app to appfog #3

@tomdeschamps

Description

@tomdeschamps

Hi

I got the code and pushed it to appfog and got the following error when the application was started:

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    import settings
  File "/mnt/var/vcap.local/dea/apps/af-python-django-0-5bb2abc74bd9c24676832a0b2139640c/app/settings.py", line 18, in <module>
    mysql_srv = vcap_services['mysql-5.1'][0]
KeyError: 'mysql-5.1'

So i pushed it a little further: I created a django app on appfog, pulled it, deleted it on appFog and tried to push it back, and ended up with the exact same error:

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    import settings
  File "/mnt/var/vcap.local/dea/apps/test-django-weather-0-b21abc19aab1679100fa2d98891e46b7/app/settings.py", line 18, in <module>
    mysql_srv = vcap_services['mysql-5.1'][0]
KeyError: 'mysql-5.1'

So what am I doing wrong here?

Thanks

Thomas

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