login community faq

Hey Guys,

I installed pinax 0.9a1 on my webfaction account.

  1. I created a webapp mod_wsgi 3.2/Python 2.6
  2. I installed and created a virtual environment in my home dir (ie /home/myusername/envs/)
  3. I installed pinax and dependencies (including PIL) in the activated virtual env
  4. I modified my apache2 httpd.conf following this tutorial and create my .wsgi file

Something is nevertheless wrong! In the beginning it was not working, then it started to work, and now it does not work again

My question is, when I start the virtual environment and pinax with the command

1
~$ python manage.py runserver

Should I specify any specific port (by default it starts as 127.0.0.1:8000), given that when setting up the webapp the webfaction control panel assigns a specific port for the mod_wsgi 3.2/Python 2.6 webapp

asked Nov 11 '10 at 04:31

danfreak's gravatar image

danfreak
12


You are not supposed to start the Django development server at all - your Pinax application should be served by Apache.

You can find detailed instructions on installing Pinax at http://code.pinaxproject.com/wiki/DetailedPinaxWebfaction/

answered Nov 11 '10 at 04:47

tie's gravatar image

tie
139113

Great mate!

It works now!

Ok I understood I should NOT start the development server! Nevertheless should I activate the virtual environment?

(Nov 11 '10 at 06:28) danfreak danfreak's gravatar image

The virtual environment is "activated" via a configuration directive in the httpd.conf (namely, via WSGIPythonHome). If everything is working, you shouldn't be reconfiguring anything.

(Nov 11 '10 at 06:45) tie tie's gravatar image

super! Thanks for your help!

(Nov 11 '10 at 07:59) danfreak danfreak's gravatar image

Just an update. The url for that wiki page is now: http://code-old.pinaxproject.com/wiki/DetailedPinaxWebfaction/ Hope that helps other visitors.

(Jul 04 '11 at 11:48) bloodpet bloodpet's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×641
×25
×13

Asked: Nov 11 '10 at 04:31

Seen: 1,545 times

Last updated: Jul 04 '11 at 11:48

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited