distutils & pip is a great way to install python (incl. Django) packages. Django has lots of installable apps. This is the barebones setup.py that you need for your django app:
Let's pretend you have an app called appname. (i.e. you started it with django-admin.py startapp appname). In the same directory as your appname folder, create a file setup.py and put this in:
#! /usr/bin/env python
from distutils.core import setup
setup(name="django-appname",
version="0.0.1",
author="Rory McCann",
author_email="rory@technomancy.org",
packages=['appname'],
)
Then you'll be able to install your django app with pip install /path/to/where/you/created/the/app
Published on
Tags:
Previous Post: ← Including Django template tags in your flatpages Next Post ascii_sparks - simple textual sparklines in python →