Pyramid 06: Authentication and Authorization

At this part of the tutorial we setup a simple system for authentication and authorization in order to restrict the access to some functionalities.

At this moment everybody can edit and add items to our database.
Now we are going to add a user for it, then the views to update, create and delete items will be restricted to that user.
The base to this tutorial can be found here.

Continue reading “Pyramid 06: Authentication and Authorization”

Pyramid 05: Changing the layout with Bootstrap 4

At this part of the tutorial we adjust our layout by updating to Bootstrap 4 and removing some content that was automatically generated by Pyramid.

Let’s make minor changes to the layout, so we keep things simple and concentrate at the backend of our application along the next posts.

By the time I am writing this tutorial, Boostrap is on version 4.1.
You can download it here.

Continue reading “Pyramid 05: Changing the layout with Bootstrap 4”

Pyramid 04: Edit (update) and delete items from database

At this step we add functions to edit and delete items from our web application.

Add this step we finish the basic crud functions of our web application by adding views to update and delete documents on database and creating the necessary jinja2 templates for it.

Continue reading “Pyramid 04: Edit (update) and delete items from database”

Pyramid 01: Basic Project Structure

This is the first of a series of posts that presents how to build a web application with Pyramid, Pymongo and WTForms.

This series of posts intend to build a web application that uses Pyramid, Pymongo and WTForms.

The goal of this step is to setup the basic project structure.

Continue reading “Pyramid 01: Basic Project Structure”