Question

I'm trying to set up Pinax and I'm new to everything involved (Django, Pinax, webservers, etc). I'm following http://pinax.readthedocs.org/en/latest/gettingstarted.html

When I generate a project using:

(mysite-env)$ pinax-admin setup_project -b basic mysite

The directory structure I get is:

apps      __init__.py   manage.py     settings.pyc  urls.py
dev.db    __init__.pyc  requirements  static        urls.pyc
fixtures  locale        settings.py   templates     wsgi.py

Which as far as I can tell is missing the deployment folder (when you compare to the directory structure shown here : http://pinax.readthedocs.org/en/latest/starterprojects.html). It doesn't seem to be effecting anything yet, but it makes me nervous. What is going on and is the fact I'm missing the deployment folder going to cause problems in the future?

I'm running Ubuntu and using python 2.7. I had the same behaviour with Windows 7, python 2.6

Thanks!

Was it helpful?

Solution

The new Django versions have made the old pinax pretty much useless. Now Django supports project templates and Pinax is separated into several smaller projects regarding starter projects (such as pinax-project-account) and apps (such as django-user-account).

The current way to use pinax is to choose a starter project, and then running something like:

$ django-admin.py startproject --template=https://github.com/pinax/pinax-project-account/zipball/master <project_name>

and then install requirements:

$ pip install -r requirements.txt

This will create a new Django project using the starter-project as a template, which already includes a few apps (like django-user-account) and templates (with bootstrap!). The project is ready to run, and already includes a bunch of functionality (like user registration, login and management).

Also, Django has changed the project directory structure a bit, so now it doesn't really look like that anymore.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top