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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Add Vue to your Django templates with Vite
When you take a course in Vue, you're normally taught how to build a Single Page Application (SPA). This is where you build an interactive user interface but it's not a full-stack application on its own. You will need an API to supply data to your SP...
Read: https://aliceridgway.hashnode.dev/add-vue-to-your-django-templates-with-vite
@django_prog
When you take a course in Vue, you're normally taught how to build a Single Page Application (SPA). This is where you build an interactive user interface but it's not a full-stack application on its own. You will need an API to supply data to your SP...
Read: https://aliceridgway.hashnode.dev/add-vue-to-your-django-templates-with-vite
@django_prog
The Django Developer's Guide to Vite
What is the best way to add JavaScript to a Django project? It is often a question of how much JavaScript are you prepared to add to your frontend.
At one extreme, you could just write Vanilla JavaScript and import it into your templates. When you fi...
Read: https://aliceridgway.hashnode.dev/the-django-developers-guide-to-vite
@django_prog
What is the best way to add JavaScript to a Django project? It is often a question of how much JavaScript are you prepared to add to your frontend.
At one extreme, you could just write Vanilla JavaScript and import it into your templates. When you fi...
Read: https://aliceridgway.hashnode.dev/the-django-developers-guide-to-vite
@django_prog
Markdown-powered emails in Django
Programmatically sending "nice-looking" HTML emails with minimal effort is hard. This is why projects like MJML exist. MJML is cool, but I think it comes with some bit of overhead, as you have to learn (and write) the markup and design the layouts (y...
Read: https://blog.victor.co.zm/markdown-powered-emails-in-django
@django_prog
Programmatically sending "nice-looking" HTML emails with minimal effort is hard. This is why projects like MJML exist. MJML is cool, but I think it comes with some bit of overhead, as you have to learn (and write) the markup and design the layouts (y...
Read: https://blog.victor.co.zm/markdown-powered-emails-in-django
@django_prog
👍3
Django Signals : Built-in signals
Django comes equipped with a powerful feature known as signals. Signals provide a way to allow various parts of your application to communicate asynchronously, enabling modular and extensible behavior. In this blog post, we'll take a closer look at s...
Read: https://blog.nischallamichhane.com.np/django-signals-built-in-signals
@django_prog
Django comes equipped with a powerful feature known as signals. Signals provide a way to allow various parts of your application to communicate asynchronously, enabling modular and extensible behavior. In this blog post, we'll take a closer look at s...
Read: https://blog.nischallamichhane.com.np/django-signals-built-in-signals
@django_prog