Django from GitHub not available for wsgi daemon

Bug #1289869 reported by David Fischer on 2014-03-08
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-django (Juju Charms Collection)
Undecided
Patrick Hetu

Bug Description

Content of config.yaml:

python-django:
  additional_distro_packages: checkinstall,git,python-dev,...
  application_path: code/Souvenirs
  django_version: git+git://github.com/django/django#egg=django
  repos_url: https://...
  site_secret_key: ...
  vcs: git
  wsgi_access_logfile: /var/log/site_access.log
  wsgi_log_file: /var/log/site_wsgi.log
  requirements_pip_files: ../../requirements.txt

Deployment:

juju bootstrap
juju deploy python-django --config config.yaml
juju deploy postgresql
juju deploy gunicorn
juju add-relation python-django gunicorn
juju add-relation python-django postgresql:db

Some actions:

~$ juju ssh python-django/0
Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.11.0-18-generic x86_64)
...
ubuntu@david-local-machine-1:~$ sudo su
root@david-local-machine-1:/home/ubuntu# python
Python 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django
<module 'django' from '/var/lib/juju/agents/unit-python-django-0/charm/src/django/django/__init__.pyc'>
>>>
root@david-local-machine-1:/home/ubuntu# su www-data
$ python
Python 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named django
>>> import sys
>>> sys.path
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/pymodules/python2.7']

Changed in python-django (Juju Charms Collection):
assignee: nobody → Patrick Hetu (patrick-hetu)
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers