Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm attempting to deploy a Django app from bazaar branch with juju using the python-django charm. I've followed the quick start directions from the README.md file:

juju bootstrap
juju deploy --config mydjangosite.yaml python-django

juju deploy postgresql
juju add-relation python-django postgresql:db

juju deploy gunicorn
juju add-relation python-django gunicorn
juju expose python-django

My mydjangosite.yaml file looks like:

mydjangosite:
    vcs: bzr
    repos_url: lp:mydjangosite

It seems like the quick start directions must be missing something. This successfully deploys a running Django instance, but it's just the hello world app that displays:

It worked!

Congratulations on your first Django-powered page.

If I ssh into the Django instance, I don't see my bzr branch anywhere. /srv/python-django/ just contains the default juju Django project files.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

You must be using juju-core (the Go version of Juju). The config file must be formatted differently as I explain in the documentation:

Note:

If your using juju-core you must remove the first line of the file and the indentation for the rest of the file.

Otherwise, it won't give you an error but the configuration file will be ignored.

So mydjangosite.yaml should really be in the form:

 vcs: bzr
 repos_url: lp:mydjangosite
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.