Tutorial 7: Installing Pinax – Creating Pinax Projects (Part 2)

Tutorial used to create Pinax Project: http://www.paolocorti.net/2009/10/10/the-pinax-tutorial-1-installing-pinax-and-making-basic-customisation/> ‘Creation of the Pinax project’
N.B. this tutorial is pretty old so a lot of commands are outdated. We will use this tutorial with the official tutorial to make some changes to it.

Steps done to create Pinax Project:

Step 1: Activate pinax-env we created in last tutorial
Screen Shot 2013-01-06 at 10.42.52 PM

Step 2: Go to folder where you want Pinax Project to be created
Screen Shot 2013-01-06 at 10.44.05 PM

Step 3: Setup a Pinax Project from one of the templates
Note: in pinax 0.9a2, ‘clone_project’ is now ‘setup_project’
Screen Shot 2013-01-06 at 10.50.54 PM

here instead of a ‘social_project’, we will be creating a ‘basic’ project: (pinax-admin setup_project -b basic aPinaxTutorial):

Screen Shot 2013-01-06 at 11.09.55 PM

Issue met: apparently this downloads and installs django 1.3.1 (note we are using django 1.4.3) –> do not change the django version or you will get a big error

if django 1.4.3 is desired, try using the tutorial 7: Part 2 alternative

Error met: ‘pip.call_subprocess([ AttributeError: ‘module’ object has no attribute ‘call_subprocess’ ‘

cause of error: in newer pip versions, call_subprocess is located under utils

solution: edit ‘setup_project.py’ file found in ‘~/Documents/virtualenv/pinax-env/lib/python2.7/site-packages/pinax/core/management/commands/setup_project.py‘. change ‘pip.call_subprocess’ > ‘pip.util.call_subprocess’
Screen Shot 2013-01-06 at 11.14.07 PM

Step 4: Check your newly created Pinax Project folder
Screen Shot 2013-01-06 at 11.21.54 PM

Step 5: SyncDb and Run Project
(python manage.py syncdb)
Screen Shot 2013-01-06 at 11.27.51 PM

then (python manage.py runserver)
Screen Shot 2013-01-06 at 11.28.49 PM

Step 6: go to (http://localhost:8000/) to see your Pinax Project

This entry was posted in Tutorials. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s