Question one...

The gist is:

1. Set up Virtualenv and Virtualenvwrapper (lots of howtos on the web for 
this - find one written in the last year)
2. Set correct environment keys to point to the right Python (similar to 
the following, you paths may be different)

# ~/.bashrc
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7
export VIRTUALENVWRAPPER_VIRTUALENV=$HOME/.local/bin/virtualenv-2.7
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Projects
source $HOME/.local/bin/virtualenvwrapper.sh

3. Make a virtualenv: like this $ mkvirtualenv myappenv
4. Install Django into the virtualenv (you should have been dumped into it 
after you made it): (myappenv) $ pip install Django
5. Check which django-admin.py you are using

$ which django-admin.py
/home/myuser/.virtualenvs/myappenv/bin/django-admin.py

Hint: Webfaction uses CentOS with many different types of Pythons. 
Searching their support website may be helpful.

---

Question two: Use mod_wsgi rather than mod_python. See warning at the top 
of the Dj1.4 docs

https://docs.djangoproject.com/en/1.4/howto/deployment/modpython/

Setting up a Django app is more complex than setting up a PHP app (one 
persons opinion). The benefit is that at the end of the ordeal you will be 
running Python and not PHP (one persons opinion).

:)

K

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a5356de2-3b61-45d6-a9de-8c76472d2a4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to