Build powerful and reliable Python web application from scratch by Antonio Mele ๐
1. Authentication System
โช๏ธ Commits:
โข Setup Dev Environment
โข Playing with Django
โข Register
โข Log in / Log out
โข Edit Profile,
โข Change or Reset Password
โ๏ธ Topics:
๐ Using the Django authentication framework
๐ Creating user registration views
๐ Extending the user model with a custom profile model
๐ Adding social authentication with Python Social Auth
๐ Summary:
Implemented all the necessary views for users to register, log in, log out,
edit their password, and reset their password. Built a model for custom user
profiles and you created a custom authentication backend to let users log in to
website using their email address. Also added social authentication to website
so that users can use their existing Facebook, Twitter, or Google account to
log in.
2. Sharing Content on Website
โช๏ธ Commits:
Creating an image bookmarking website
โข Building the image model
โข Creating many-to-many relationships
โข Registering the image model in the administration site
Posting content from other websites
โข Cleaning form fields
โข Overriding the save() method of a ModelForm
โข Building a bookmarklet with jQuery
Creating a detail view for images
Creating image thumbnails using easy-thumbnails
Adding AJAX actions with jQuery (Like button)
Creating custom decorators for your views
Adding AJAX pagination to your list views
โ๏ธ Topics:
๐ Creating many-to-many relationships
๐ Customizing behavior for forms
๐ Using jQuery with Django
๐ Building a jQuery bookmarklet
๐ Generating image thumbnails using easy-thumbnails
๐ Implementing AJAX views and integrating them with jQuery
๐ Creating custom decorators for views
๐ Building AJAX pagination
๐ Summary:
Created models with many-to-many relationships and learned
how to customize the behavior of forms. Used jQuery with Django to build
a JavaScript bookmarklet to share images from other websites into website.
Covered the creation of image thumbnails using the easy-thumbnails
library. Finally, Implemented AJAX views with jQuery and added AJAX
pagination to the image list view.
3. Tracking User Actions
โช๏ธ Commits:
Building a follow system
โข Creating many-to-many relationships with an intermediary model (Following system model)
โข Creating list and detail views for user profiles
โข Building an AJAX view to follow users (Follow/Unfollow button client side views)
Building a generic activity stream application
โข Using the contenttypes framework (to add target "X bookmarked Y" Generic Foregin Key)
โข Adding generic relations to your models
โข Avoiding duplicate actions in the activity stream (validation for activities)
โข Adding user actions to the activity stream
โข Displaying the activity stream
โข Optimizing QuerySets that involve related objects
โข Using prefetch_related()
Using signals for denormalizing counts.
(Denormalization is making data redundant in such a way that it optimizes read performance)
โข Working with signals (Signals can be used for updating denormalization data)
โข Application configuration classes
Using Redis for storing item views
โข Installing Redis [https://github.com/microsoftarchive/redis/releases] [https://youtu.be/188Fy-oCw4w]
โข Using Redis with Python
โข Storing item views in Redis
โข Storing a ranking in Redis
โข Next steps with Redis
โ๏ธ Topics:
๐ Building a follow system
๐ Creating many-to-many relationships with an intermediary model
๐ Creating an activity stream application
๐ Adding generic relations to models
๐ Optimizing QuerySets for related objects
๐ Using signals for denormalizing counts
๐ Storing item views in Redis
๐ Summary:
Built a follow system using many-to-many relationships with an
intermediary model. Created an activity stream using generic relations and
you optimized QuerySets to retrieve related objects. Then introduced
Django signals, and created a signal receiver function to denormalize
related object counts. Covered application configuration classes, which used
to load your signal handlers. Also learned how to install and configure Redis
in Django project. Finally, used Redis in project to store item views,
and built an image ranking with Redis.