Задать вопрос

Тел: +7 965 3737 888

536

Просмотров

4

Ответов

Seamless Django and VirtualEnv integration

Automatically activates the virtualenv when running manage.py command.

Just create requirements.pip file inside the root of django project and run ./manage.py update_ve in first time.

Code checks requirements.pip and virtual env timestamps and require to recreate outdated environment.

Вопрос полезен? Да0/Нет0
file_2822.py(1.9Кб)
None

Ответы (4):

Ответka2n:23.07.2011
Ответ полезен? Да0/Нет0

.ev/bin/python

import sys

sys.prefix

'workspaceDIR/.ve/bin/./..'

Ответka2n:23.07.2011
Ответ полезен? Да0/Нет0

Error on Mac

Traceback (most recent call last): File "./manage.py", line 37, in [HTML_REMOVED] go_to_ve()
File "./manage.py", line 24, in go_to_ve retcode = subprocess.call([python, file] + sys.argv[1:]) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 486, in call return Popen(popenargs, *kwargs).wait() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 672, in init errread, errwrite) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1112, in _execute_child self.pid = os.fork() OSError: [Errno 35] Resource temporarily unavailable

Ответkmmbvnr:11.10.2010
Ответ полезен? Да0/Нет0

@hans just forget to remove.

It just another way to go to ve without spawning new python process, but i finish with using the same apprache as in pip

Ответhans:28.09.2010
Ответ полезен? Да0/Нет0

Just wondering - Why did you not use the VE_ACTIVATE in your script?