WebFaction
Community site: login faq

I have been looking high and low on how to get a running instance of pinax on webfaction. Here's the steps I have been able to figure out so far via this out of date tut found here http://code-old.pinaxproject.com/wiki/DetailedPinaxWebfaction/

Make Domains Make static app for media
Make app for wsgi
Make site with apps: wsgi = /, media = /media
Make env

mkvirtualenv --no-site-packages --distribute --python=/usr/local/bin/python2.7 app_name

Install Pinax

pip install pinax

Intall Python Image Lib

pip install pil

Install psycopg
got to http://initd.org/psycopg/install/ and download source

wget http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.4.tar.gz

untar psycopg

tar zxf psycopg2-2.4.4.tar.gz

cd into new psycopg dir

cd ppsycopg2-2.4.4

nano the setup.cfg

nano setup.cfg

edit the path for the pg_config

pg_config = /usr/pgsql-9.1/bin/pg_config

NOTE: path for web300 users, the code-old.pinaxproject will give you the wrong path if your running on web300

save and close the setup.cfg file

python setup.py build

python setup.py install

Make a new dir for your pinax project

cd ~/webapp/wsgi app
mkdir projects* then *cd projects
pinax-admin setup_project mysite

Note: on the code-old.pinaxproject tut on the "create a project" looks to be out of date. At this point I followed the examples found at http://pinax.readthedocs.org/en/latest/gettingstarted.html#creating-a-project to create my pinax proejct

Go into settings.py and do the regular django stuff.

cd mysite
nano settings.py

I edited

SERVE_MEDIA = False

MEDIA_URL = "http://[mydomain]/media/"

MEDIA_ROOT = "/home/[myuser]/webapps/[mymediaapp]/"

I also set my user ADMINS and db settings closed and saved settings.py

next I ran the syncdb

python manage.py syncdb

I will skip the cron stuff for now since I'm not hung up on how to do cron stuff.

Note: At this point in the code-old.pinaxproject tuts I strated to run into issues with the "Build media directory links within the project and create symbolic links on the static media server."

python manage.py build_media -all

python manage.py build_media -all failed and I got Unknown command: 'build_media' So I dont know if this was a old django or pinax method or if this is just wrong on the tut but it does not work in pinax 0.9a2. I also asked in the django IRC about 'build_media' and no one seemed to know about that method.

This is really were I run into the big issues because I think since I could no build media the the next steps cant be completed because there is no "site_media" found in my pinax project folder

also when editing the http.conf file it makes reference to

projects/mysite**/deploy/pinax.wsgi which I assume is wsgi.py but I'm not sure.

All in all the http://code-old.pinaxproject.com/wiki/DetailedPinaxWebfaction/ is the only complete tutorial I have seen and its broken for todays workflows.

**I used mysite inplace of myproject since I followed the other tuts to create my pinax project.

At this point I'm looking for help in understanding the last remaining steps and I will also take the time to make a full complete tutorial from what I learn here to aid others in their learning.

asked 14 Feb '12, 10:27

gfxcomplex
736
accept rate: 0%

edited 14 Feb '12, 13:25


Hi,

I believe that the build_media command was renamed build_static, and later collectstatic. So can you try running "python manage.py collectstatic" instead, and let us know if this resolves your issues?

The pinax.wsgi file referenced in the httpd.conf file is a standard WSGI script, such as the one you would see when building a Django app from the control panel. I'm not sure what your question is about that one - can you elaborate?

permanent link

answered 15 Feb '12, 03:19

todork
1.2k5
accept rate: 34%

Once I got my head around the older commands I was able to finish the tutorial.

(02 Mar '12, 18:12) gfxcomplex

http://code-old.pinaxproject.com/wiki/DetailedPinaxWebfaction/ doesn't seem to be publicly available (requires log in).

Would be great for WebFaction to maintain up-to-date instructions for installing Pinax or better-still, include it in the list of "native" apps.

Right now the installation seems like too much of a hassle and too much can go wrong leaving you in the muck...

permanent link

answered 05 May '12, 13:00

sagi
1
accept rate: 0%

I've just posted an updated HOWTO for Pinax on WebFaction - Hope that helps!

(05 May '12, 17:35) seanf
Your answer
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×13
×4

question asked: 14 Feb '12, 10:27

question was seen: 3,158 times

last updated: 05 May '12, 17:35

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM