Fernando Correia’s Weblog

October 30, 2008

Exploring Pinax – Part 6

Filed under: Software Development — Fernando Correia @ 7:53 pm
Tags: ,

I think this series of articles is starting to pay off… A few people are using my first article to learn how to set up a new Pinax website. And also, I am getting feedback on how to do things better.

On the pinax-users list, Bob Haugen pointed out that I was not following the recommended setup, because I was creating my new website inside Pinax’s project directory. There was no real harm, but he was right. I updated my instructions so Pinax and the custom website are in separate directories.

As I wrote on the user list:

Let me explain my motives. I use Subversion daily and I’m comfortable
with it. I knew that just copying the directory would give me lots of
trouble when I decided to update Pinax. So the “export” idea was
natural.

I just exported it alongside the sample project because I was just
starting to learn Pinax and didn’t want to mess too much with the
structure because I didn’t know about its dependencies. I had read the
customization doc, but it was not so clear to me at first sight.

But the official doc is right. I think we should consider Pinax more
like a library, like Django itself, that should be installed and
updated on its own, and the website we build should be a separate
project, with its own version control. So it should be natural to put
Pinax where we store random software (I used ~/opt) and our website
where we put things we’re working on or software we deploy (I used
~/Projects).

I’m very grateful for the feedback and I hope this humble series may be helpful.

Cheers!

About these ads

3 Comments »

  1. Good stuff. Hope to see more.

    Comment by ssss — November 6, 2008 @ 1:57 am

  2. ssss: Thank you for the feedback. I’m working on part 7.

    Comment by fernandoacorreia — November 7, 2008 @ 7:24 pm

  3. Fernando,

    I’ve really loved your posts. One issue I can’t grapple with yet is how you’re managing revision control manually. In other words, if I want to keep Pinax up to date and pulling from the repository, while setting up my own repository for me and other developers to work on, what do you think the best solution is?

    Ideally, we would keep revision histories and everything and possibly even be able to merge modifications and additions from the main complete_project/ directory.

    Any thoughts are greatly appreciated.

    -Adam

    Comment by Adam Nelson — November 20, 2008 @ 8:42 pm


RSS feed for comments on this post. TrackBack URI

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

The Rubric Theme. Create a free website or blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: