Videos from Django Under the Hood 2016 are up – check ‘em out! As usual, the conference was amazing and the content was fantastic. I really enjoyed all the talks, and they’re all worth your time to talk. Three in particular stood out to me as exceptional highlights: Ana’s talk on Testing in Django is the […]
Category: Django
Django Under the Hood 2016 Highlights
Videos from Django Under the Hood 2016 are up – check ’em out! As usual, the conference was amazing and the content was fantastic. I really enjoyed all the talks, and they’re all worth your time to talk. Three in particular stood out to me as exceptional highlights: Ana’s talk on Testing in Django is […]
Caching in Django with Redis
Application performance is vital to the success of your product. In an environment where users expect website response times of less than a second, the consequences of a slow application can be measured in dollars and cents. Even if you are not selling anything, fast page loads improve the experience of visiting your site. Everything […]
Flask by Example – Custom Angular Directive with D3
Welcome back. With Angular set up along with a loading spinner and our refactored Angular controller, let’s move on to the final part and create a custom Angular Directive to display a frequency distribution chart with JavaScript and the D3 library. Remember: Here’s what we’re building – A Flask app that calculates word-frequency pairs based […]
So you want a new admin?
Django’s admin site is about 12 years old. It started circa early 2004 as an internal CMS at the Lawrence Journal-World, was released as part of Django in 2005, and has been chugging away ever since. There’s been some substantial re-writes along the way – magic-removal, new forms, the flat theme – but for the […]
So you want a new admin?
Django’s admin site is about 12 years old. It started circa early 2004 as an internal CMS at the Lawrence Journal-World, was released as part of Django in 2005, and has been chugging away ever since. There’s been some substantial re-writes along the way — magic-removal, new forms, the flat theme — but for the […]
Deploying Django + Python 3 + PostgreSQL to AWS Elastic Beanstalk
The following is a soup to nuts walkthrough of how to set up and deploy a Django application, powered by Python 3, and PostgreSQL to Amazon Web Services (AWS) all while remaining sane. Tools/technologies used: Python v3.4.3 Django v1.9 Amazon Elastic Beanstalk, EC2, S3, and RDS EB CLI 3.x PostgreSQL Check out the Python 2 […]
Updated Django Website
One year later Last year I wrote about developing our company website with Django: http://blog.aclark.net/2015/01/11/new-django-website/index.html This year, I updated the site and am again very happy with the results. Here’s an overview of the interesting aspects. Makefile I’ve continued to develop Python projects using a Makefile. So much so I’m now attempting to genericize the […]
Django: Run Multiple Update Queries Faster with Database transaction
Posted by: admin 3 days, 22 hours ago (Comments) Django’s default behaviour is to run autocommit mode. Each query is immediately committed to the database unless a transaction is active. Django provides a single API to control database transactions. atomic allows us to create a block of code or a function within which the atomicity of the database is guaranteed. If […]
Mezzanine: Adding recent post in home page
Posted by: admin 2 weeks, 3 days ago (Comments) Mezzanine is a powerful, consistent, and flexible content management platform. Built using the Django framework, Mezzanine provides a simple yet highly extensible architecture that encourages diving in and hacking on the code. To display the recent post in home page, Just copy and paste the below code in […]
Development and Deployment of Cookiecutter-Django on Fedora
Last time we set up a Django Project using Cookiecutter, managed the application environment via Docker, and then deployed the app to Digital Ocean. In this tutorial, we’ll shift away from Docker and detail a development to deployment workflow of a Cookiecutter-Django Project on Fedora 23. Development Install cookiecutter globally and then generate a bootstrapped […]
WSGI: The Server-Application Interface for Python
Nowadays, almost all Python frameworks use WSGI as a means, if not the only means, to communicate with their web servers. This is how Django, Flask and many other popular frameworks do it. This article intends to provide the reader with a glimpse into how WSGI works, and allow the reader to build a simple […]
Development and Deployment of Cookiecutter-Django via Docker
Let’s look at how to bootstrap a Django Project pre-loaded with the basic requirements needed in order to quickly get a project up and running. Further, beyond the project structure, most bootstrapped projects also take care of setting up the development and production environment settings, without troubling the user much – so we’ll look at […]
Rewriting a Flask app in Django
I spent Saturday on rewriting a Flask app in Django. The app in question was Nikola Users, which is a very simple CRUD app. And yet, the Flask code was a mess, full of bugs and vulnerabilities. Eight hours later, I had a fully functional Django app that did more and fixed all problems. Original […]
LinkedIn Social Authentication in Django
Social Authentication (or Social Login) is a way to simplify logins for end users by using existing login information from the popular social networking services such as Facebook, Twitter, Google+, LinkedIn (focus of this article), and so on. Most websites that require a user to login, utilize social login platforms for a better authentication/registeration experience […]