Git Product home page Git Product logo

djreservation's Introduction

Django reservation system

  • 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 = "[email protected]"
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/(?P<modelpk>\d+)$", MyObjectReservation.as_view())
]
urlpatterns += djreservation_urls.urlpatterns

djreservation's People

Contributors

luisza avatar yvaeltercero avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.