Django community: Community blog posts RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Using uwsgi to deply django site on ubuntu server
Here are some few things to know before deploying django site on ubuntu server install You have two ways to install uwsgi on ubuntu: apt-get or pip apt-get if you use apt-get, you need to install the python plugin: sudo apt-get install uwsgi-plugin-p... -
Subclassing in Python Redux
The conflict between subclassing and composition is as old as object-oriented programming. The latest crop of languages like Go or Rust prove that you don’t need subclassing to successfully write code. But what’s a pragmatic approach to subclassing in Python, specifically? -
What is Django?
Django is a web application framework written in python programming language. It is based on MVT (Model View Template) design pattern. The Django is very demanding due to its rapid development feature. It takes less time to build application after co... -
What is Django?
Django is a web application framework written in python programming language. It is based on MVT (Model View Template) design pattern. The Django is very demanding due to its rapid development feature. It takes less time to build application after co... -
Encrypting data in Django with SECRET_KEY
Hi everyone. Let's talk about encrypting data in Django. Django has a built-in module called signing that allows you to sign data and then also unsign it. It uses SECRET_KEY of your project to hash so only the backend that encrypted can decrypt the ... -
Django Templates, Context, Template Tags and filters
When working with web frameworks at some point rendering data directly through your controller or views is not efficient. Let's take an example of code snippet from our first article in this series Django Setup, Architecture and Hello World which loo... -
Learning Backend WebDev, Log #10 - A Very Long, and a Really Good Day
I did. I really did have a good work day! I had one of those, whatchacallit, flow states. Read more… (2 min remaining to read) -
Dockerizing Flask with Postgres, Gunicorn, and Traefik
This tutorial details how to configure Flask to run on Docker along with Postgres, Gunicorn, Traefik, and Let's Encrypt. -
Django News - DjangoCon US 2021 CFP, new Wagtail, TailwindCSS 2.2, and more. - Jun 18th 2021
News Wagtail 2.13.2, 2.12.5, and 2.11.8 releases! New Wagtail CVE-2021-32681: Improper escaping of HTML (‘Cross-site Scripting’) in Wagtail StreamField blocks for 2.13.2, 2.12.5, and 2.11.8. wagtail.io PSF News: Update on the Python Software Foundation Executive Director Python Software Foundation Executive Director Ewa Jodlowska is stepping down at the end of the year. The Python and Django community would not be where we are today without her ten+ years of service. blogspot.com Psycopg 2.9 released If you are like us and have used Psycopg for years and never paid much attention to the release notes, 2.9 is a good opportunity to get caught up. psycopg.org Python 3.10.0b3 is available Python 3.10.0b3 is the third of four planned beta release previews. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support the new feature release. python.org Tailwind CSS v2.2 An all-new high-performance CLI tool, ::before and ::after support, sibling selectors, selected text variants, and tons more. tailwindcss.com Events DjangoCon US 2021 CFP is open! The DjangoCon US 2021 CFP is open and closes on July 18, 2021. papercall.io PyGotham TV Call for Proposals The PyGotham TV … -
Basic and Full-text Search with Django and Postgres
This article looks at how to add basic and full-text search to a Django app with Postgres. -
Learning Backend WebDev, Log #8 - Many, Many Relationships
Another day of doing only Django. Not that I’m complaining. Finishing up this Django course is my priority. Followed by PostgreSQL and Data Structures and Algorithms. I just have to do them step by step, one after another. Read more… (2 min remaining to read) -
Best practices for Django and Django Rest Framework
Django is one such Rest API framework that has been continuously in the picture for its scalability, flexibility, and accountability. All our developers rely on the ‘Python’ language of intelligence while coding and scripting because best remains best always. Let us understand “Django” in depth. What is Django? What's the use of it in the Software and IT development sector? Firstly! Django is a toolkit that is used to prepare web API. There are lots of developers like web browsing developers, web server developers and so are the web API developers. To understand the very interface of Application programming [API], one needs to know that an API interacts and deals professionally between two parties. You can also consider it a true and genuine third digital party. Hence, a developer is responsible to build that particular ‘web API’ for each company and enterprises. To maintain the loyalty and proficiency of ‘no cheating/ black marketing/ hoarding; an API is created. The very API is systematic in its working progress as it doesn’t reveal all the facts to any of the parties. Any online business which wants to enhance and expand for the longer term, it must build “TRUST” with the other business/ … -
FYP-DevLog-010
Progress Highlights Project Research / Discussion Completed FItweet's UML activity diagrams Completed Fitweet EDM's ML process diagram Recorded FYP1 Final Presentation video https://youtu.be/IbpKjgCF-e4 Project Development Fitweet Labelling ... -
Reasons why Django is the best web framework
Choosing a web framework is hard especially now when there are a lot of frameworks on the market, each designed to address different project needs. Here is why I think that Django is the best choice in most cases. What is Django? Django - The web fr... -
Learning Backend WebDev, Log #7 - Owning All the Rows
Let’s get on with today’s log! I studied only Django today. Was plagued with rains and power cuts and family stuff. Managed to work well and patiently though. Read more… (2 min remaining to read) -
How to Receive and Respond to Incoming SMS Messages in Python with Flask and Plivo
Sending an outbound message using the Plivo SMS platform is easy, but communication should be a two-way street. Customers should be able to text you, and you should acknowledge their messages and address their concerns. To do this, you can build a Py... -
Stripe payment gateway integration in Django with example
Overview: Stripe is one of the most used payment processing platforms. In this tutorial, we will learn how to integrate stripe checkout into a Django app. Stripe has very detailed and simple documentation which makes it developer-friendly. In this tu... -
The VPP/VPE Relationship
For an organization to succeed – to reliably and consistently deliver great products that customers want – Product and Engineering need to work well individually, but more importantly, they need to work well together. The working relationship between these two organizations starts with the relationship between their two leaders. If these two individuals don’t have a strong individual working relationship, the team relationship is doomed. This article covers what a strong relationship between the VPE and the VPP looks like, and how to build that relationship. -
Building an Admin Panel with Django Admin in 2021
Admin panels are at the heart of every business operation, be it sales, analytics, user management, and so much more. That said, it isn't easy to find the right tools to help you build robust and scalable systems without spending too much time. Djang... -
Learning Backend WebDev, Log #6 - Focus Followup
Today, I did not quite care how much progress I made. Instead I focussed on getting my focus periods in, like I described yesterday. Read more… (2 min remaining to read) -
Django Chat is Where it’s At
Have you heard of the Django Chat podcast? With more than 90 episodes on all things Django, it’s full of informative interviews featuring some of the best and brightest in the industry. Django Chat is focused on the Django Web Framework and is hosted by William Vincent and Carlton Gibson, two Django experts. Caktus co-founders Tobias McNulty and Colin Copeland were featured on the podcast in May, and former Cakti Erin Mullaney was featured last year in episode 63. In episode 92, Tobias and Colin discuss the evolution of Django and Caktus over the last 14 years. Tobias also discusses his work on the Django Ops Team, and Colin explains his involvement with co-founding Code for Durham. They also discuss Caktus’ focus on training and leveling up junior engineers. In The Beginning Both Tobias and Colin began programming when they were in high school. During the podcast, they speak about their common background and how they met in college, which eventually led to the creation of Caktus Group. “In my senior year of college, I met Colin and the other two founders. It was just a natural fit. We really enjoyed working together as a team,” says Tobias during the … -
Save your Django models using update_fields for better performance
A tutorial on how update_fields() can be used make the save() method more efficient in the Django ORM -
Integrate Axios with Django Rest Framework
Do you need to integrate the Axios HTTP client with Django Rest Framework? Then make sure to correctly configure the Django built-in Cross Site Request Forgery protection. TLDR: add these variables to your Django settings: CSRF_COOKIE_NAME = 'XSRF-TOKEN' CSRF_HEADER_NAME = 'HTTP_X_XSRF_TOKEN' Axios has built-in support for CSRF protection, and this is the default configuration: // name of the cookie to use as a value for xsrf token xsrfCookieName: 'XSRF-TOKEN' // name of the http header that carries the xsrf token value xsrfHeaderName: 'X-XSRF-TOKEN' According to Django documentation: "As with other HTTP headers in request.META, the header name received from the server is normalized by converting all characters to uppercase, replacing any hyphens with underscores, and adding an 'HTTP_' prefix to the name. For example, if your client sends a 'X-XSRF-TOKEN' header, the setting should be 'HTTP_X_XSRF_TOKEN'." -
What are Views in Django?
Building Web Application is fun and challenging as well. But why do you want to build a web application? is there any need to do that? Yes, there are Business requirements to building an application and requirements could be anything like build an ap... -
Get Started with Django for Backend Development
I think, therefore I am Rene Descartes Table of Contents What is Django? Why should you use Django? Websites that rely on Django History of Django Prerequisites Virtual Environment Django: creating a project Django: creating an app Resources for f...