Skip to main content

A simple app that provides easy integration with the Pikaday Datepicker

Project description

Django Pikaday

A simple app that provides easy integration with the Pikaday Datepicker.

MIT licensed

Compatibility

  • Django 1.4, 1.5, 1.6

  • Python 2.7, 3.x

  • Browsers: Chrome, Firefox 3.5, IE8, Opera 10, Safari 3.2 and later

Installation

pip install django-pikaday

Or install directly from master branch:

pip install git+http://github.com/caioariede/django-pikaday.git#egg=django-pikaday==1.0

Configuration

Add djpikaday to the INSTALLED_APPS setting.

Usage

from django import forms
from djpikaday.widgets import PikadayInput

class YourForm(forms.ModelForm):
    widgets = {
        'my_date_field': PikadayInput(),  # Uses DATE_FORMAT
    }

Using a custom format

from django import forms
from djpikaday.forms import PikadayField

class YourForm(forms.ModelForm):
    # Needs to use the format described in:
    # http://docs.python.org/2/library/datetime.html#strftime-strptime-behavior
    widgets = {
        'my_date_field': PikadayInput(format='%Y-%m-%d'),
    }

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-pikaday-0.4.tar.gz (66.3 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