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
Created initial functionality allowing admin or superusers to add new blog posts.
Added a rich-text editor in the form (new_post.html), enabling text customisation, embedded images, tables, code snippets, etc. This changes
also be done via the admin interface, however in the interface the textarea box is smaller
Created the BlogPost and Category models to support the form.
Added necessary views and URLs to handle the new blog page.
Updated the accounts page with a blog card, visible only to superusers and admin accounts which can be used to navigate to page to create a new post.
Decorators
Applied decorators to restrict post-creation access, redirecting unauthorised users to the home page with an appropriate message.
Updated Requirements
Updated requirements.txt and settings to support new libraries.
Known Issues
Logging in from the blog section as a non-authenticated user results in a validation error, because login route is incorrectly
appended to the blog URL (e.g., /blog/authentication/login/).
Reproduction steps:
Logout
Navigate to the blog section
Open the login dropdown and enter credentials
Encounter validation error due to incorrect login URL
new_post.html
), enabling text customisation, embedded images, tables, code snippets, etc. This changes also be done via the admin interface, however in the interface the textarea box is smallerBlogPost
andCategory
models to support the form.blog
card, visible only to superusers and admin accounts which can be used to navigate to page to create a new post.Decorators
Updated Requirements
requirements.txt
and settings to support new libraries.Known Issues
Logging in from the blog section as a non-authenticated user results in a validation error, because login route is incorrectly appended to the blog URL (e.g.,
/blog/authentication/login/
).Reproduction steps:
This issue will be resolved in future updates.