Skip to main content

# TODO: Write description

Project description

Manage opening hours with ease!


  1. Add this in your INSTALLED_APPS:


  1. Import module in your
    from opening_hours_management.models import OpeningHours
  2. Add your opening attribute in your model:
    opening = models.OneToOneField(
        verbose_name=_("Opening hours"),
  3. Run makemigrations and migrate.
  4. Add this on your template file:
    {% load opening_hours_management %}
    {% show_opening_hours object.opening <True/False> %}
    Here object.opening is our OpeningHours OneToOne, and True/False is a condition that makes the templatetag displays special openings/closings that have already occurred. It defaults to False if not present (example).
  5. That's all folks!


Screenshot of django-opening-hours-management

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-opening-hours-management-0.0.8.tar.gz (28.0 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