Fullstack Fruit & Veg Shop: A web application developed with HTML, CSS, and JavaScript for the frontend, and Django for the backend. Features include user authentication, a product catalogue, shopping cart functionality, and order management. and much more
Updated mark_email_as_verified, clear_verification_data, and set_verification_code methods to include an optional save parameter (default: True) to allow deferred database saving. This optimises performance by reducing the number of database transactions during batch operations or multiple updates.
Enhanced docstrings for these methods to clearly explain the use and benefits of the save parameter, providing flexibility and control over when changes are saved to the database.
Added new logout functionality to the application:
Implemented a logout function to handle user logout actions.
Updated the logout link in the navigation (navbar) to use the new logout function.
Redirects users to the home page after a successful logout, improving user experience by providing a clear exit path from the application.
These updates improve the application's efficiency, performance, and user experience by optimising database operations and providing a smoother logout process.
Updated
mark_email_as_verified
,clear_verification_data
, andset_verification_code
methods to include an optionalsave
parameter (default: True) to allow deferred database saving. This optimises performance by reducing the number of database transactions during batch operations or multiple updates.Enhanced docstrings for these methods to clearly explain the use and benefits of the
save
parameter, providing flexibility and control over when changes are saved to the database.Added new logout functionality to the application:
logout
function to handle user logout actions.logout
function.These updates improve the application's efficiency, performance, and user experience by optimising database operations and providing a smoother logout process.