Giter VIP home page Giter VIP logo

django-social-website's Introduction

Social Website - Image Bookmarking System

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.

django-social-website's People

Contributors

alimov-8 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.