Django Unleashed Framework
1.46K subscribers
2.17K photos
2.58K links
Лучшие материалы по разработке на фреймворке Django на русском и английском языке

Разместить рекламу: @tproger_sales_bot

Правила общения: https://tprg.ru/rules

Другие каналы: @tproger_channels

Другие наши проекты: https://tprg.ru/media
Download Telegram
To Do List - Part 5: Improve the UI

Welcome to Part 5 of my tutorial series on creating a To Do list app with Django.
In Parts 1 to 4, we focused on adding functionality to our app. In this part, we will focus on building out the UI. We will improve the layout. In Parts 6, 7 and 8, we ...

Read: https://aliceridgway.hashnode.dev/to-do-list-part-5-improve-the-ui

@django_prog
To Do List - Part 4: Adding a form

Welcome to Part 4 of my tutorial series on building a To Do List app with Django. In the previous tutorial, we added views to process requests from the user. In this tutorial, we will create a form that will let users submit new tasks for their To Do...

Read: https://aliceridgway.hashnode.dev/to-do-list-part-4-adding-a-form

@django_prog
To Do List - Part 3: URLs, Views & Templates

Welcome to Part 3 of my tutorial series to build a To Do list app. In the previous tutorial we added a model. This means we have a table in the database to store data but we need a way for our users to interact with it.
In this tutorial, we are going...

Read: https://aliceridgway.hashnode.dev/to-do-list-part-3-urls-views-templates

@django_prog
To Do List - Part 2: Apps & Models

Welcome to Part 2 of my To-Do list tutorial series.
In Part 1, we set up a Django project with a database and created a user. In this tutorial, we going to create a model, which will be used to create a table in our database.
This is what we are goin...

Read: https://aliceridgway.hashnode.dev/to-do-list-part-2-apps-models

@django_prog
To Do List - Part 1: Installing Django

This tutorial is part of a series on creating a To Do List app. If you just want to start up a new Django project, you're in the right place.
This tutorial is going to cover how to start a new Django project.
These are the steps we’re going to take t...

Read: https://aliceridgway.hashnode.dev/to-do-list-part-1-installing-django

@django_prog
Tutorial: Create a To Do List App

This is a beginner friendly Django tutorial to create a To Do list app.
This will teach you how to start a Django project from scratch. You will learn how to Create, Read, Update and Delete (CRUD) data from a SQLite database and build a website that ...

Read: https://aliceridgway.hashnode.dev/tutorial-create-a-to-do-list-app

@django_prog
How To Resize Images For Your Django Project using Pillow (Blog Example)

As a Django developer, you might want to prevent users from uploading large images.
If the uploaded images are wider than the container they will be displayed in, then they are too big. For you, the developer, it means having to pay for more storage....

Read: https://aliceridgway.hashnode.dev/how-to-resize-images-for-your-django-project-using-pillow-blog-example-1

@django_prog
How To Add a Text Editor To A Django Blog With Summernote

Building a blog with Django is a popular project for beginners but how many people would actually use the end result?
Most tutorials use a TextField to store the post body with HTML's default textarea widget. This isn’t very good on its own because t...

Read: https://aliceridgway.hashnode.dev/how-to-add-a-text-editor-to-a-django-blog-with-summernote

@django_prog
What **kwargs are & when to use them in your Django project

kwargs is short for "keyword arguments", which are optional arguments of a Python function.
In Django, you may come across functions which contain *args and/or **kwargs as inputs.
As someone who learned Django without prior experience in Python, I fo...

Read: https://aliceridgway.hashnode.dev/what-kwargs-are-when-to-use-them-in-your-django-project

@django_prog
How to set up Black to automatically format your Django project

Black is an auto-formatter for Python projects. It can be configured to automatically format your code when you save your files. This means you will spend less time formatting your code and have your code formatted in a clear and consistent way.
Blac...

Read: https://aliceridgway.hashnode.dev/how-to-set-up-black-to-automatically-format-your-django-project

@django_prog
How to keep track of packages for your Django project with pip-tools

As a developer, it is important to keep track of what 3rd party packages are installed on your virtual environment. In order for your project to work on other machines, you need to make sure each environment uses the same packages and the same versio...

Read: https://aliceridgway.hashnode.dev/how-to-keep-track-of-packages-for-your-django-project-with-pip-tools

@django_prog
How to Generate Fake Data for your Django Project with Faker

Development is more efficient when you have data to work with. It’s hard to visualise what some of your pages will look like without data to fill them. For example, you don’t want to discover issues with your page layouts until after you go Live.
Cre...

Read: https://aliceridgway.hashnode.dev/how-to-generate-fake-data-for-your-django-project-with-faker

@django_prog
How to Fix Django's NoReverseMatch Error

A NoReverseMatch error is a common Django error and one that can often be fixed with just one line of code.
NoReverseMatch at /
Reverse for 'index' not found. 'index' is not a valid view function or pattern name.


The cause of the error is likely to...

Read: https://aliceridgway.hashnode.dev/how-to-fix-djangos-noreversematch-error

@django_prog
Django Annotate: 7 Examples to Supercharge your Querysets

Want to feel powerful? Learn how to use the .annotate() method on your querysets. While your less experienced colleagues write multiple queries and for loops to get the result they are looking for, you can get your queryset to do all the heavy-liftin...

Read: https://aliceridgway.hashnode.dev/django-annotate-7-examples-to-supercharge-your-querysets

@django_prog
How to Filter Django QuerySets - 15 Examples For Beginners

I am going to show you how to filter your Django QuerySets. There are lots of tips and tricks to write more powerful Django queries. By applying the skills in the examples, you will build your confidence using Django ORM and writing better queries fo...

Read: https://aliceridgway.hashnode.dev/how-to-filter-django-querysets-15-examples-for-beginners

@django_prog
Basic User Registration with Django

This tutorial is going to cover how to create users in Django in the most basic way possible.
This tutorial covers:

Adding a URL pattern to urls.py

Creating a user registration form in forms.py

Creating a view in views.py


The need to handle pass...

Read: https://aliceridgway.hashnode.dev/basic-user-registration-with-django

@django_prog
Django Login & Logout Tutorial

Adding login and logout to your Django application is very quick and doesn't require lots of custom code. However, it relies a lot on features built into Django, which can be confusing. I am going to show you the quickest way to log users in.
This is...

Read: https://aliceridgway.hashnode.dev/django-login-logout-tutorial

@django_prog
How to Log Users In With Their Email

What makes Django different to other web frameworks is it includes a model for users. This means it is possible to add user registration to your project without having to create a table to store user data in the database yourself.
I recently wrote a ...

Read: https://aliceridgway.hashnode.dev/how-to-log-users-in-with-their-email

@django_prog
User Registration with Django REST Framework

User registration with Django REST Framework (DRF) can be challenging because you don't have the advantage of Django's built in user model. I am going to show you how to implement user registration with an API, without compromising user passwords.
Pr...

Read: https://aliceridgway.hashnode.dev/user-registration-with-django-rest-framework

@django_prog
How to Create Rows in the Database with Django ORM

Django ORM (Object Relational Mapper) allows your application to modify your database with Python. This means you won't have to write any SQL to manage your database. Django ORM will convert your code into SQL for you.
I am going to show you two ways...

Read: https://aliceridgway.hashnode.dev/how-to-create-rows-in-the-database-with-django-orm

@django_prog