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 details)

Uploaded Source

File details

Details for the file django-pikaday-0.4.tar.gz.

File metadata

  • Download URL: django-pikaday-0.4.tar.gz
  • Upload date:
  • Size: 66.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-pikaday-0.4.tar.gz
Algorithm Hash digest
SHA256 8e966ed6d7e8517add499055c1eb1043aada4f5f19e563b29c771d54abab3ef4
MD5 6aa1cfc5314ff51b22314612c0c523e2
BLAKE2b-256 b6f32d1c97c957a0fa05611592a7efadfda4da184a721e02a626a9cc159a2ecb

See more details on using hashes here.

Supported by

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