A model from which all django models can extend. Gives some additional utility functions
Project description
--------------------------------------------------------------------------------
django_base_model
Extensions to the Django Base Model and Django Model Manager/
Requires Python 2.5 or later.
Website: http://rogeliorv.github.com/
Git Repository: http://github.com/rogeliorv/django_base_model.git
--------------------------------------------------------------------------------
To make use of the classes in this package:
1) Create your own django project (python django-admin.py startproject)
2) Create a django application (python manage.py startproject sampleapp)
3) Add your newly created application to INSTALLED_APPS in settings.py
3) In models.py add the following lines
from django_base_model import ExtendedBaseModel, ExtendedBaseModelManager
from django.db import models
class ExampleModel(ExtendedBaseModel):
text = models.CharField(max_length = 256)
objects = ExtendedBaseModelManager()
--------------------------------------------------------------------------------
How to contribute a patch:
1. Fork django_base_model on github.com
2. Create a new branch
3. Commit changes to this branch
4. Send a pull request
django_base_model
Extensions to the Django Base Model and Django Model Manager/
Requires Python 2.5 or later.
Website: http://rogeliorv.github.com/
Git Repository: http://github.com/rogeliorv/django_base_model.git
--------------------------------------------------------------------------------
To make use of the classes in this package:
1) Create your own django project (python django-admin.py startproject)
2) Create a django application (python manage.py startproject sampleapp)
3) Add your newly created application to INSTALLED_APPS in settings.py
3) In models.py add the following lines
from django_base_model import ExtendedBaseModel, ExtendedBaseModelManager
from django.db import models
class ExampleModel(ExtendedBaseModel):
text = models.CharField(max_length = 256)
objects = ExtendedBaseModelManager()
--------------------------------------------------------------------------------
How to contribute a patch:
1. Fork django_base_model on github.com
2. Create a new branch
3. Commit changes to this branch
4. Send a pull request
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django_base_model-0.2.2.tar.gz
.
File metadata
- Download URL: django_base_model-0.2.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba3fae786666b558dc6e6f3463f7e0a3b9d26db1358aa0a3442462d288c8d47f |
|
MD5 | d19a95a4aaf0a9e645e52f366ea85c6f |
|
BLAKE2b-256 | 442183918e2af23c98d0457fe279665b0cbe0a7c779b2a4eca76bfdc77cb7572 |