install Django locally

10 views
Skip to first unread message

Staszek

unread,
Jan 10, 2014, 7:34:12 AM1/10/14
to django...@googlegroups.com
Hi

Is it possible to bundle Django with the application, or a number of
applications, instead of installing it in a system-wide location?

The instructions here:
https://docs.djangoproject.com/en/1.6/topics/install/ do not seem to
allow such a setting.

I was kind-of able to do it with PYTHONPATH=/some/path/to/django/, i.e.
this command-line program:

import django
print(django.get_version())

runs (and prints 1.6.1), but Django's own test suite does not seem to work:

$ ./runtests.py
Usage: runtests.py [options] [module module module ...]

runtests.py: error: DJANGO_SETTINGS_MODULE is not set in the
environment. Set it or use --settings.

What's wrong?...

--
http://people.eisenbits.com/~stf/
http://www.eisenbits.com/

OpenPGP: 80FC 1824 2EA4 9223 A986 DB4E 934E FEA0 F492 A63B

Frank Bieniek

unread,
Jan 10, 2014, 9:04:46 AM1/10/14
to django...@googlegroups.com
Hi,
It sounds you are looking for virtualenvironments,
http://www.virtualenv.org/en/latest/

It helps you to put everything related to your project in one environment.
https://docs.djangoproject.com/en/dev/topics/install/#installing-an-official-release-with-pip

Cheers Frank
Reply all
Reply to author
Forward
0 new messages