James-Glennon / Portfolio-project-4-Django

A second submission for the Code Institute milestone project #4
0 stars 1 forks source link

Portfolio Project 4: Full-stack Frameworks: Django

by James Glennon

About / Design

A business to consumer site for a small dublin restaurant.

The objective to provide information about the physical shop, and provide the opportunity to view and make reservations online.

No payment options will be availible in the final product

CSS

A start bootstrap template was used to generate base html, css and js.

A coffee shop template was used due to meeting similiar demands.

A B2C site, providing service(preparing food), but not accepting payment in advance

Data model design

Created using Google Sheets

The basic premise of the data is that all available bookings are stored in the tables model.

These bookings must be generated in the table before a booking request can be made for these times.

a registered user submits a booking request into the bookings model.

The user may only choose from the bookings in tables that are currently set to Availability = True

The request is approved by a staff/admin, which changes the entry in tables matching the bookings date and time to Availabilty = False

The booking request is tied to a User ID, which has a matching email, allowing the staff to contact the user and confirm that the booking has been accepted.

Features

Project is incomplete

Development

Development was carried out using Django frameworks.

Progress was recorded using GitHubBoards

Though in a way that was unorganised and inconsistent, despite the utility present with the management tool.

Resolved Issues

Known Bugs / Unresolved Issues

I cannot seem to link my template to the CSS files present in my static files using the { static 'css/base.css'}. I don't know why.

When trying to visualise the model data as a query set in the front end as shown in the lessons, my Guest model seems not to have a .objects property. I don't know why.

Testing

Project is incomplete

Validation and Lighthouse

Project is incomplete

Deployment

Version control was enabled with GitHub.

The project was remotely posted to Heroku using the Heroku CLI.

The final deployment to heroku failed, and so the page was rolled back to a previous version that deployed to heroku successfully.

I do not know why the later deployments failed (with a H10 Error),

After looking into the error, it seems most commonly linked to a Procfile error. However, the Procfile was unchanged from the last deploy and the functional ones prior.

Static files, such as CSS and js required for the Start Bootstrap are to be hosted at Cloudinary, however the Project is incomplete

Room for Improvement / Expansion

The Ability to Pay using something like Stripe for expanded services, like delivery or a small booking fee.

Automation: The current model design requires a staff member to manually accept booking requests and to email manually to confirm.

Accepting requests could be handled automatically in the back end (in theory) and email confirmation could be handled with Zapier.

Credits

Media

Start Bootstrap

Business Casual bootstrap compatible template and images.

Code

Cloud With Django

Deploy static files to Cloudinary from a Django app

A video I consulted to try get a better grasp on using cloudinary