python - How to setup the same Django Virtual Environemnt in two computers? -



python - How to setup the same Django Virtual Environemnt in two computers? -

currently need setup production django app in computer , know what's best way it? production server uses virtualenv , executed next commands info environment. thanks

$ uname -a linux domu-12-31-39-0c-75-e2 2.6.34.7-56.40.amzn1.x86_64 #1 smp fri oct 22 18:48:49 utc 2010 x86_64 x86_64 x86_64 gnu/linux $ pwd /home/ec2-user/virtenvs/django-1.2.5/ $ ./pip freeze cheetah==2.4.1 django==1.2.5 m2crypto==0.20.2 markdown==2.0.1 mysql-python==1.2.3 pil==1.1.7 pyyaml==3.05 pygments==1.1.1 south==0.7.3 boto==2.0b4 cloud-init==0.5.15 configobj==4.6.0 distribute==0.6.10 django-classy-tags==0.3.3 django-cms==2.1.3 django-haystack==1.1.0 django-tinymce==1.5.1a1 iniparse==0.3.1 policycoreutils-default-encoding==0.1 pycurl==7.19.0 pygeoip==0.1.5 pygpgme==0.1 pysolr==2.0.13 pysqlite==2.6.0 python-levenshtein==0.10.2 pytz==2011c pywurfl==7.2.1 setools==1.0 urlgrabber==3.9.1 virtualenv==1.5.1 yum-metadata-parser==1.1.2

you should able on current server:

pip freeze -l > requirements.txt

then on other machines:

pip install -r requirements.txt

there related pip docs online describe functionality.

python django virtualenv

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -