Skip to main content

A reusable Django app that allows adding dated decimal values to any Django model

Project description

A reusable Django app that allows adding dated decimal values to any Django model.

Installation

To get the latest stable release from PyPi

pip install django-dated-values

To get the latest commit from GitHub

pip install -e git+git://github.com/bitmazk/django-dated-values.git#egg=dated_values

TODO: Describe further installation steps (edit / remove the examples below):

Add dated_values to your INSTALLED_APPS

INSTALLED_APPS = (
    ...,
    'dated_values',
)

Add the dated_values URLs to your urls.py

urlpatterns = patterns('',
    ...
    url(r'^dated-values/', include('dated_values.urls')),
)

Don’t forget to migrate your database

./manage.py migrate dated_values

Add css or write your own custom styles.

{% load static %}
<link href="{% static "dated_values/css/dated_values.css" %}" rel="stylesheet">

Usage

TODO: Describe usage or point to docs. Also describe available settings and templatetags.

Settings

DATED_VALUES_ACCESS_ALLOWED = lambda user: user.is_staff DATE_FORMAT = getattr(settings, ‘DATED_VAUES_DATE_FORMAT’, ‘%d-%m-%Y’)

Contribute

If you want to contribute to this project, please perform the following steps

# Fork this repository
# Clone your fork
mkvirtualenv -p python2.7 django-dated-values
make develop

git co -b feature_branch master
# Implement your feature and tests
git add . && git commit
git push -u origin feature_branch
# Send us a pull request for your feature branch

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-dated-values-0.1.tar.gz (13.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page