Skip to main content

Powerful and dinamic reservation system in django.

Project description

  • Customizable reservations (you can provide your own reservation model)

    https://github.com/luisza/djreservation/blob/master/demo/img/ReserveObject.png?raw=true
  • Generic reservation create view and reserve product view

    https://github.com/luisza/djreservation/blob/master/demo/img/creating_reservation.png?raw=true
  • Reservation list filter by user

    https://github.com/luisza/djreservation/blob/master/demo/img/userreservationlist.png?raw=true
  • Email notifications with template system

  • Django Admin backend for administrative proposuse like Accept, Borrow, Denied reservations

  • Parcial reservations in admin (Not all products can be borrowed)

    https://github.com/luisza/djreservation/blob/master/demo/img/ReservationAdmin.png?raw=true
  • UI based on Twitter Bootstrap

  • Using i18n to handle translations

Documentation

See in readthedocs.io

Installation

Install with pip

$ pip install django-reservation

In settings.py

Set “djreservation” in your INSTALLED_APPS.

Set ‘djreservation.middleware.ReservationMiddleware’ in MIDDLEWARE

MIDDLEWARE = [
                ...
        'djreservation.middleware.ReservationMiddleware'
]

Configure your email settings

DEFAULT_FROM_EMAIL = "mail@example.com"
EMAIL_HOST = "localhost"
EMAIL_PORT = "1025"

Configure database

Run migrations

python manage.py migrate

In your code

Where you want, create a view for reserve a product

from djreservation.views import ProductReservationView

class MyObjectReservation(ProductReservationView):
        base_model = MyObject     # required
        amount_field = 'quantity' # required
        extra_display_field = ['measurement_unit'] # not required

In urls.py

Append django reservation to urlpatterns

from djreservation import urls as djreservation_urls

urlpatterns = [
        ...
        url(r"^reservation/create$", MyObjectReservation.as_view())
]
urlpatterns += djreservation_urls.urlpatterns

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-reservation-0.2.8.tar.gz (54.3 kB view details)

Uploaded Source

File details

Details for the file django-reservation-0.2.8.tar.gz.

File metadata

File hashes

Hashes for django-reservation-0.2.8.tar.gz
Algorithm Hash digest
SHA256 972bb8d1b9acfe19f7b634e58c070c469a7d8757c8df4293254b9a0dec15bff7
MD5 57299dd21c0e759946b9b8d24a3b94b1
BLAKE2b-256 a20384787e34eadb57c79a322af66186e59bbaca4e1cc65bba50e1928247d7d9

See more details on using hashes here.

Provenance

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