Skip to content

Commit

Permalink
setup.py added. Thanks to Andrew Ingram.
Browse files Browse the repository at this point in the history
  • Loading branch information
bconstantin committed Feb 4, 2010
1 parent c10577c commit cf42a81
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ pushreg
pbackup
mcmd.py

pip-log.txt
build
ppreadme.py
ppdocs.py
README.html
Expand Down
6 changes: 3 additions & 3 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
django_polymorphic was initially created by Bert Constantin in 2009/2010.
django_polymorphic was created by Bert Constantin in 2009/2010.

setup.py contributed by Andrew Ingram

If you contributed code, test cases etc., your name should
appear here as well.
15 changes: 9 additions & 6 deletions DOCS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,22 @@ to your liking, then run::
./manage syncdb # db is created in /var/tmp/... (settings.py)
./manage pcmd
Using polymorphic models in your own projects
---------------------------------------------
Installation
------------

The easiest way for now is to just copy the ``polymorphic`` directory
(under ``django_polymorphic``) into your Django project dir.
In the directory "django_polymorphic", execute ``sudo python setup.py install``.

Alternatively you can simply copy the ``polymorphic`` directory
(under "django_polymorphic") into your Django project dir.

If you want to use the management command ``polymorphic_dumpdata``, then
you need to add ``polymorphic`` to your INSTALLED_APPS setting as well.
you need to add ``polymorphic`` to your INSTALLED_APPS setting.

In any case, the ContentType framework (``django.contrib.contenttypes``)
In any case, Django's ContentType framework (``django.contrib.contenttypes``)
needs to be listed in INSTALLED_APPS (usually it already is).



Defining Polymorphic Models
===========================

Expand Down
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from distutils.core import setup

setup(
name = 'django_polymorphic',
version = '0.2',
description = 'Seamless Polymorphic Inheritance for Django Models',
author = 'Bert Constantin',
author_email = 'bert.constantin@gmx.de',
url = 'http://bserve.webhop.org/wiki/django_polymorphic',
packages = [ 'polymorphic' ],
)

0 comments on commit cf42a81

Please sign in to comment.