Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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:

    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
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:


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

Your Answer


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.