Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
- 
        Class-based vs Function-based Views in DjangoThis article looks at the differences between Django's class-based views (CBV) and function-based views (FBV).
- 
        Announcing django-deniedI have paranoia when it comes to my Django app. I run a homeschool scheduling service called School Desk. My Software as a Service (SaaS) lets families plan their homeschool activities. Since the app deals with data about students (including my kids!), it’s important to me that every user’s data is protected, so that users can only view their own information. When I designed the system, I picked a shared Postgres schema (i.
- 
        Django News - Python 3.11.0b5 and a new Wagtail CMS book - Jul 29th 2022News Wagtail CMS in Action Kalob Taulien is the author of Learn Wagtail and many other great courses. His new book, Wagtail CMS in Action, is in progress and available for 40% off now. You can read the first two chapters for free. manning.com Python Insider: Python 3.11.0b5 is now available Python 3.11.0b5 is the last* beta for Python 3.11. blogspot.com Help us test system trust stores in Python If you're an IT or software team that uses Python along with corporate system certificates, an internal CA, or an internal PyPI repository: please read on to help improve Python. sethmlarson.dev Sponsored Ad Crunchy Bridge - Fully Managed Postgres as a Service crunchybridge.com Events Announcing the DjangoCon US 2022 Schedule! The DjangoCon US 2022 talk, tutorial, and sprint schedule is now out. Both in-person and online tickets are available. djangocon.us Articles Django Hosting & Deployment Options An up-to-date listing of Django specific deployment options. learndjango.com Lightweight Javascript Framework Review (For Django Developers) If you were curious about lightweight javascript frameworks, then this is the comprehensive post for you which includes: Phoenix LiveView Laravel Livewire Hotwire (Turbo, Stimulus) StimulusReflex Catalyst HTMX Unpoly Alpine.js Django Reactor Django Unicorn django-sockpuppet Tetra accordbox.com Python Package …
- 
        Recursive Optional Dependencies in PythonOne of my (slowly evaporating) reasons why I like putting packaging metadata into an executable setup.py is the ability to have optional dependencies that are combinations of others. As of pip 21.2, this is possible without running code.
- 
        10 Ways How Salesforce Integration Improves Business Performance and 3rd party appsSalesforce Integration is a process of connecting two applications or systems running on common/different platforms. These integrations have different layers like Data, Business Logic, Presentation and Security, depending on the requirements
- 
        Extract a New Open Source Package - Building SaaS with Python and Django #140In this episode, I pulled out code from homeschool application and started a new open source project for a portion that I thought would be useful for others. The new package, which I have called django-denied, is a way of handling authorization in your Django apps.
- 
        Extract a New Open Source Package - Building SaaS #140In this episode, I pulled out code from homeschool application and started a new open source project for a portion that I thought would be useful for others. The new package, which I have called django-denied, is a way of handling authorization in your Django apps.
- 
        Integration Of GitHub API with Python DjangoUsing Github integration, we can get the user verified email id, general information, git hub URL, id, disk usage, public, private repo's, gists and followers, following in a less span of time.These Following steps are needed for Github integration:1. creating git hub app2. Authenticating user and getting an access token.3. Get user information, work history using access token.
- 
        Django Efficient Implementation of Amazon S3 and Cloudfront CDN or Faster LoadingDjango by default to store the files in your local file system. To make your files load quickly and secure we need to go for any third party storage systems. AWS s3 is one of the storage service for the Internet. It is designed to make web-scale computing easier for developers. django has a package called django-storages which can be used to store the files in the amazon s3 and serve them from its cloudfront service.
- 
        How to Write Custom Migrations in DjangoThis blog post will help you to get deeper into Django Migrations - how Migrations works and how to create or add our custom migrations. Migrations are mainly for keeping the data model of you database up-to-date.
- 
        Django Unit Test Cases with Forms and ViewsBy writing unit test cases, you can evaluate each code component in the initial stage itself and it'll improve your app/code performance. Which is the best practice to test your code and you can easily determine if there are any errors.
- 
        Querying with Django Q ObjectsQuerying with Django Q objects: Q object encapsulates a SQL expression in a Python object that can be used in database-related operations. Using Q objects we can make complex queries with less and simple code.
- 
        Django - Migrating from Function Based Views to Class Based ViewsThe single most significant advantage in Django class-based views is inheritance. On a large project it's likely that we will have lots of similar views. instead of writing the repeated code we can simply have our views inherit from a base view.
- 
        Understanding Checkout Flow in Django OscarExplaining Django Oscar checkout flow.
- 
        Integration of Linkedin API in Python DjangoUsing Linkedin integration, we can get the user's verified email id, general information, and work history in less span of time, and a user can also share articles.These Following steps are needed for Linkedin integration:1. Creating a LinkedIn app2. Authenticating the user and getting an access token3. Get user information, and work history using the access token
- 
        How to Create Initial Django Migrations for Existing DB SchemaDjango provides the comfort database migrations from its version 1.8, with which we can avoid the usage of third party packages like south. Adding migrations to new apps is straightforward - they come preconfigured to accept migrations, and so just run make migrations once you’ve made some changes. But if your app already has models and database tables, and doesn’t have migrations yet or you got your migrations messed up, you’ll need to convert your app to use migrations.
- 
        Django Conditional Expressions in QueriesReduce database queries in django with Conditional Expressions. By using Conditional Expressions we can use "If...Elif...Else" expressions while querying the database so that we can reduce the number of queries to the database and increase the response time. If we don't use conditional expressions in queries we have to write raw SQL queries or we have to hit/query the database for multiple times. That's the reason Django included Conditional Expressions from version 1.8
- 
        Sorl-Thumbnail to Generate Thumbnails in DjangoDisplaying and Customizing the images in django with sorl-thumbnail.
- 
        Using Gitlab API, Integrating Gitlab in Django Project for Authentication and AccessThis is a simple way to integrate gitlab authentication in your django apps.We can get user verified email id, general information, git lab URL and token from Gitlab API.These Following steps are needed for Gitlab integration:1. creating git lab app2. Authenticating user and getting an access token.3. Get user information, git lab URL using an access token.
- 
        Deploying Your Django App on HerokuHeroku is a platform as a service (PaaS) that enables developers to build and run applications entirely in the cloud.1. installation2. Creating and Deploying app.3. Dependencies Used
- 
        How to Create Thumbnail Image in Django Templates Using Sorl-Thumbnail?Sorl thumbnail is the package that is being widely used to generate thumbnails in Django. It will create a thumbnail of a given size for the given image, which won't work out in the case of responsive designs. Html5's 'srcset' attribute is the solution for this problem to load proper images to the corresponding resolutions, whose thumbnails are generated with sorl thumbnail.
- 
        Using Python Weasyprint Generate HTML to PDF in DjangoWeasyPrint is to combine multiple pieces of information into an HTML template and then converting it to a PDF document.
- 
        Django-REST Framework Object Level Permissions and User Level PermissionsDjango-REST User Level Permissions and Object Level Permissions. User Level Permissions and Object level Permissions allow to serve customers based on their access levels or permissions. Let us consider the scenario of Authors, Books, Readers. Authors are only allowed to write the books. Readers are only allowed to read the allowed Books.
- 
        Introduction to API Development Using Django REST Framework with ExampleIntroduction to API development with Django REST framework. You can build the API for any Django application. Pre-requisites are Django and OOPS(object oriented programming concepts) . In this
- 
        Custom Validations for Serializer Fields Django Rest Frameworkwe can write custom validations for serializer fields in Django Rest Framework. Validators are used to validate the data whether it is semantically valid or not. Validation simplifies the data processing. Validation avoids the data redundancy