theonlysam / bookthecourt Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
How to use Bootstrap with Django (walk-through adding it to an existing project)
https://www.youtube.com/watch?v=YmJ0TACm8oE
Maybe worth thinking a bit more about:
https://stackoverflow.com/questions/1209090/indefinitely-repeating-events-in-django-calendar
As per answer, maybe leverage a plugin?
https://github.com/thauber/django-schedule/tree/master
For Organic we did not really have to deal with recurring events. I will also ping Adam in PDM which I think needed this
The bookings are made against preset individual 1 hr timeslots e.g 5pm, 6pm, 7pm etc. In the period 6am to 9pm
All the booking slots for each day should be displayed and the available ones the user would be able to select and book. The already booked ones the user should be able to see who has booked it and the players.
How do we treat this logic, add all the timeslots to the database and then update them as the users book?
Do we store the timeslots in a table?
This view allows the user (member) to create/add a new booking for a specific day and time.
This view allows the admin user to create/add a new recurring booking for multiple days and time
Validation / Business logic
Bookings can only be done on the same day for less than 3 members
Advanced bookings can only be done for one day ahead for 3 or more members
Bookings can be done by the admin user for other users
For the organic tool I showed (or see here: https://www.youtube.com/watch?v=gBVJg7bfulg) I worked off of this example:
https://www.huiwenteo.com/normal/2018/07/24/django-calendar.html
This one should be straight-forward, https://learndjango.com/tutorials/django-login-and-logout-tutorial - although if you use the allauth plugin - see this training: https://pybites.mykajabi.com/products/pybites-developer-mindset-pdm-program/categories/2567732/posts/10874758 - this might be covered already :)
Any service in mind? If Heroku, which is quite straightforward, we have this training, old but should still work
- Deploy a Django App to Heroku - https://pybites.mykajabi.com/products/pybites-developer-mindset-pdm-program/categories/2567732/posts/9928153
Could use a plugin: https://pypi.org/project/django-phone-field/ but might also be overkill, I am ok with a charfield for now
Originally posted by @bbelderbos in #9 (comment)
https://pybit.es/articles/how-to-handle-environment-variables-in-python/ -> I would go with python-decouple (make sure you gitignore your .env file)
I use this alias to quickly pull in a Python gitignore file, but you can also do this on GitHub when you creating a project:
$ alias gitign
gitign='curl -s https://raw.githubusercontent.com/github/gitignore/main/Python.gitignore > .gitignore'
Pybites Mindmapping (App Design) Training
https://www.youtube.com/watch?v=ZEOJ7GZyg0k
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.