Moved project templates into cookbooks.

This commit is contained in:
Jannis Leidel 2013-07-27 16:49:50 +02:00
parent 61bb7b0e44
commit f4cea1e97b
3 changed files with 51 additions and 24 deletions

View file

@ -96,27 +96,3 @@ function but instead ``configurations.wsgi.get_wsgi_application``.
That's it! You can now use your project with ``manage.py`` and your favorite
WSGI enabled server.
Project templates
-----------------
You can use a special Django project template that is a copy of the one
included in Django 1.5.x. The following examples assumes you're using pip_
to install packages.
First install Django and django-configurations::
pip install -r https://raw.github.com/jezdez/django-configurations/templates/1.5.x/requirements.txt
Then create your new Django project with the provided template::
django-admin.py startproject mysite -v2 --template https://github.com/jezdez/django-configurations/archive/templates/1.5.x.zip
Now you have a default Django 1.5.x project in the ``mysite`` directory that uses
django-configurations.
See the repository of the template for more information:
https://github.com/jezdez/django-configurations/tree/templates/1.5.x
.. _pip: http://pip-installer.org/

View file

@ -1,6 +1,50 @@
Cookbook
========
.. _project-templates:
Project templates
-----------------
You can use a special Django project template that is a copy of the one
included in Django 1.5.x and 1.6.x. The following examples assumes you're
using pip_ to install packages.
Django 1.5.x
^^^^^^^^^^^^
First install Django 1.5.x and django-configurations::
pip install -r https://raw.github.com/jezdez/django-configurations/templates/1.5.x/requirements.txt
Then create your new Django project with the provided template::
django-admin.py startproject mysite -v2 --template https://github.com/jezdez/django-configurations/archive/templates/1.5.x.zip
See the repository of the template for more information:
https://github.com/jezdez/django-configurations/tree/templates/1.5.x
Django 1.6.x
^^^^^^^^^^^^
First install Django 1.6.x and django-configurations::
pip install -r https://raw.github.com/jezdez/django-configurations/templates/1.6.x/requirements.txt
Or Django 1.6::
django-admin.py startproject mysite -v2 --template https://github.com/jezdez/django-configurations/archive/templates/1.6.x.zip
Now you have a default Django 1.5.x or 1.6.x project in the ``mysite``
directory that uses django-configurations.
See the repository of the template for more information:
https://github.com/jezdez/django-configurations/tree/templates/1.6.x
.. _pip: http://pip-installer.org/
Celery
------

View file

@ -1,5 +1,12 @@
.. include:: ../README.rst
Project templates
^^^^^^^^^^^^^^^^^
Don't miss the Django :ref:`project templates pre-configured with
django-configurations<project-templates>` to simplify getting started
with new Django projects.
Wait, what?
-----------