Hi guys, today I’ve implemented Facebook Login Authentication system in Django using django-social-auth. I would like to share the experience with you in simplest possible way. So the steps I would mention here are for Windows users but would work as almost the same for Linux and Mac users. Objective – To implement a Facebook [...]
Archive for the ‘python’ Category
Here I present some of the Python tips and tricks to get your work done in concise and quick way. I know that many experienced users will find it trivial, but for an beginner or average Python user, these can be way too helpful. So dive in – 1) Writing concise code using list comprehension [...]
This thing can be easily achieved in Python which in other languages usually require 3-4 lines. This is possible due to Python’s tuple data structure. So to interchange values of two variables ‘x’ and ‘y’ simply use – x, y = y, x “x, y” defines a new tuple which takes the values of old [...]
If you have arrived to this web page, you must be knowing how urls are mapped to web pages in Django. These web pages are created using templates for reusability purposes. So a full fledged content of views.py would be somewhat like – from django.template import Context, Template from django.template import HttpResponse t = Template(“<template_content>”) [...]
