Django community: Community blog posts RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Python Asyncio Web Scraping
A lot of Python programs are S... -
OpenCV & Python: How to Change Resolution or Rescale Frame
Let's assume you're working of... -
How to Record Video in OpenCV & Python
OpenCV makes it simple to reco... -
Save an Auto Generated PDF File to Django model
To save a auto-generated PDF f... -
OpenCV & Python: Face Recognition and Identification
I'm really starting to enjoy w... -
How to add a watermark with overlays using OpenCV & Python
Creating a watermark with Open... -
3rd Party Haar Cascades in OpenCV
Building on [face recognition ... -
Create a Timelapse with Python & OpenCV
Learn how to create timelapses... -
How to Apply Image Filters in OpenCV with Python
Add your own image filters on ... -
Staging Django for Production & Local Development
## How do you have different s... -
Django Channels 2.0 to Production Environment
Learn how to deploy a Django C... -
Reactify Django
# Reactify Django is Here Bui... -
Install Jupyter Notebooks in a Virtual Environment
Let's install Jupyter for a di... -
Setup React
Below is a reference we made t... -
A few JavaScript Functions for Images and Files
> This post will be updated as... -
Changing Default Python 3 in Terminal for Mac OS
Sometimes Python gets upgraded... -
Pipenv Virtual Environments for Python
`Pipenv` is an **amazing** rep... -
Deep Learning Acronym Cheatsheet
Below as a list I'm working on... -
Dataset Resources for Machine Learning
In our [Machine Learning](/cou... -
10 Crucial Questions to Ask a Potential Software Development Partner
Nobody embarks on a software development project with the goal of failing. Unfortunately, failure is a real possibility if you don’t find the right development partner. The key is getting the right information to help you make the choice that’s genuinely right for your project. So how do you do that? The post 10 Crucial Questions to Ask a Potential Software Development Partner appeared first on Distillery. -
Django ORM Optimization Tips
When it comes to optimizing an ORM, your greatest weapon is your understanding of how your ORM works under the hood (at least at a high level). This makes understanding all of the rules and guidelines for creating a speedy application much easier. Therefore, I highly recommend reading through the Django docs on the subject … Continue reading Django ORM Optimization Tips The post Django ORM Optimization Tips appeared first on concise coder. -
Django Authentication Video Tutorial
In this tutorial series, we are going to explore Django’s authentication system by implementing sign up, login, logout, password change, password reset and protected views from non-authenticated users. This tutorial is organized in 7 videos, one for each topic, ranging from 4 min to 15 min each. Setup Sign Up Login Logout Password Change Password Reset Protecting Views Conclusions Setup Starting a Django project from scratch, creating a virtual environment and an initial Django app. After that, we are going to setup the templates and create an initial view to start working on the authentication. If you are already familiar with Django, you can skip this video and jump to the Sign Up tutorial below. Sign Up First thing we are going to do is implement a sign up view using the built-in UserCreationForm. In this video you are also going to get some insights on basic Django form processing. Login In this video tutorial we are going to first include the built-in Django auth URLs to our project and proceed to implement the login view. Logout In this tutorial we are going to include Django logout and also start playing with conditional templates, displaying different content depending if the … -
Crack Django Passwords
Most of the Django projects I work with take advantage of django.contrib.auth. It manages users and groups and is tightly coupled with django.contrib.admin. In this post, we are going to explore how it resists a potential attacker. The study below assumes an attacker obtained the encrypted password column from the database: mysql> select password from auth_user limit 1; +-------------------------------------------------------------------------------+ | password | +-------------------------------------------------------------------------------+ | pbkdf2_sha256$20000$H0dPx8NeajVu$GiC4k5kqbbR9qWBlsRgDywNqC2vd9kqfk7zdorEnNas= | +-------------------------------------------------------------------------------+ Django stores passwords in the following format: <algorithm>$<iterations>$<salt>$<hash> As computers get faster, hashing a password also gets faster. This is important because the only protection password hashing offers is to make "guessing" the encrypted password more time consuming. The 2 knobs you can turn to increase this time are the algorithm and the number of iterations. Since Django 1.4 (released in 2012), the default algorithm it uses is PBKDF2 as recommended by NIST. It is interesting to note that since then the iteration parameter has been increased at least 4 times: 1, 2, 3, 4. With this in mind, I was interested to know how many passwords I could crack with a limited budget of less than $100 and few days. Performing a similar experiment against your own database will help you evaluate … -
Cracking Django Password Hashes
Most of the Django projects I work with take advantage of django.contrib.auth. It manages users and groups and is tightly coupled with django.contrib.admin. In this post, we are going to explore how it resists a potential attacker. The study below assumes an attacker obtained the encrypted password column from the database: mysql> select password from auth_user limit 1; +-------------------------------------------------------------------------------+ | password | +-------------------------------------------------------------------------------+ | pbkdf2_sha256$20000$H0dPx8NeajVu$GiC4k5kqbbR9qWBlsRgDywNqC2vd9kqfk7zdorEnNas= | +-------------------------------------------------------------------------------+ Django stores passwords in the following format: <algorithm>$<iterations>$<salt>$<hash> As computers get faster, hashing a password also gets faster. This is important because the only protection password hashing offers is to make "guessing" the encrypted password more time consuming. The 2 knobs you can turn to increase this time are the algorithm and the number of iterations. Since Django 1.4 (released in 2012), the default algorithm it uses is PBKDF2 as recommended by NIST. It is interesting to note that since then the iteration parameter has been increased at least 4 times: 1, 2, 3, 4. With this in mind, I was interested to know how many passwords I could crack with a limited budget of less than $100 and few days. Performing a similar experiment against your own database will help you evaluate … -
Django Tips #6: Custom User Model
How and why to add a custom user model to all new Django projects.