File: install.rst

package info (click to toggle)
python-coffin 0.3.8-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 564 kB
  • ctags: 389
  • sloc: python: 1,567; makefile: 101
file content (38 lines) | stat: -rw-r--r-- 1,017 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Installation
============

Install the package through PyPi::

    easy_install Coffin

Or alternatively, get the source::

    git clone git://github.com/dcramer/coffin.git
    cd coffin
    python setup.py install

Once installed, you will need to add Coffin to several places throughout your projects.

First, open up ``settings.py`` and add Coffin to your ``INSTALLED_APPS``::

    INSTALLED_APPS = (
        'coffin',
        ...
    )

The easiest way to enable Jinja2, rather than Django, is to change your import paths. For example, if we're using the ``render_to_response`` shortcut, we simply need to tweak our import line::

    from django.shortcuts import render_to_response

To the following::

    from coffin.shortcuts import render_to_response

Coffin includes drop in replacements for the following Django modules:

* :mod:`django.shortcuts`
* :mod:`django.views.generic.simple`
* :mod:`django.contrib.auth`
* :mod:`django.contrib.markup`
* :mod:`django.contrib.syndication`
* :mod:`django.template`