Day 17 : Docker Project for DevOps Engineers.
📄What is 'Dockerfile' ?
Docker is a tool that makes it easy to run applications in containers. Containers are like small packages that hold everything an application needs to run.
To create these containers, developers use something called a Dockerf...
Read: https://devab.hashnode.dev/day-17-docker-project-for-devops-engineers
@django_prog
📄What is 'Dockerfile' ?
Docker is a tool that makes it easy to run applications in containers. Containers are like small packages that hold everything an application needs to run.
To create these containers, developers use something called a Dockerf...
Read: https://devab.hashnode.dev/day-17-docker-project-for-devops-engineers
@django_prog
❤1
Guide to Mastering Full Stack Development: A Comprehensive Framework Overview
In a world where digital convenience is key, mastering full stack development is more essential than ever. It equips developers with the ability to build comprehensive web applications from the ground up, integrating both front-end and back-end devel...
Read: https://priya222.hashnode.dev/guide-to-mastering-full-stack-development-a-comprehensive-framework-overview
@django_prog
In a world where digital convenience is key, mastering full stack development is more essential than ever. It equips developers with the ability to build comprehensive web applications from the ground up, integrating both front-end and back-end devel...
Read: https://priya222.hashnode.dev/guide-to-mastering-full-stack-development-a-comprehensive-framework-overview
@django_prog
The Python application written using Django Framework!
I've wanted to use Python and the Django Framework to develop a backend application for a long time. So here I am.
Concept of Django framework
A high-level Python web framework called Django makes it easier to create online applications quickly, clea...
Read: https://ghatodghach.hashnode.dev/the-python-application-written-using-django-framework
@django_prog
I've wanted to use Python and the Django Framework to develop a backend application for a long time. So here I am.
Concept of Django framework
A high-level Python web framework called Django makes it easier to create online applications quickly, clea...
Read: https://ghatodghach.hashnode.dev/the-python-application-written-using-django-framework
@django_prog
👍3
Accelerate Deployment: Jenkins CI/CD Pipeline Configuration with Docker Compose and Declarative Method on AWS
Introduction:
In today's fast-paced software development environment, continuous integration and continuous delivery (CI/CD) have become essential practices for ensuring the quality and efficiency of software delivery. In this tutorial, we'll walk th...
Read: https://shubhammukherji.hashnode.dev/accelerate-deployment-jenkins-cicd-pipeline-configuration-with-docker-compose-and-declarative-method-on-aws
@django_prog
Introduction:
In today's fast-paced software development environment, continuous integration and continuous delivery (CI/CD) have become essential practices for ensuring the quality and efficiency of software delivery. In this tutorial, we'll walk th...
Read: https://shubhammukherji.hashnode.dev/accelerate-deployment-jenkins-cicd-pipeline-configuration-with-docker-compose-and-declarative-method-on-aws
@django_prog
"JavaScript Sorcery: Conquering django-filter"
Introduction
Ah, dear readers, welcome to the dark side of JavaScript, where mere mortals tremble in confusion while we, the code villains, wield our mastery over the django-filter package. Prepare yourselves, for we shall unravel the secrets of filt...
Read: https://supervillain.hashnode.dev/javascript-sorcery-conquering-django-filter
@django_prog
Introduction
Ah, dear readers, welcome to the dark side of JavaScript, where mere mortals tremble in confusion while we, the code villains, wield our mastery over the django-filter package. Prepare yourselves, for we shall unravel the secrets of filt...
Read: https://supervillain.hashnode.dev/javascript-sorcery-conquering-django-filter
@django_prog
👍3
How to reset user passwords in Django applications
What do you do when you can’t log into Django admin? If you’re developing locally, then you have a few options.
Create a new user using python manage.py createsuperuser
Change the password in the shell
You will be able to access most user data th...
Read: https://aliceridgway.hashnode.dev/how-to-reset-user-passwords-in-django-applications
@django_prog
What do you do when you can’t log into Django admin? If you’re developing locally, then you have a few options.
Create a new user using python manage.py createsuperuser
Change the password in the shell
You will be able to access most user data th...
Read: https://aliceridgway.hashnode.dev/how-to-reset-user-passwords-in-django-applications
@django_prog
👍2
How to use the Many-to-Many field in your Django models
What is a Many-to-Many field?
A many-to-many field is a type of field used to establish a link between two database tables where one row can be linked to multiple rows of another table and vice versa.
Example 1: Tagging
Consider an image-sharing app....
Read: https://aliceridgway.hashnode.dev/how-to-use-the-many-to-many-field-in-your-django-models
@django_prog
What is a Many-to-Many field?
A many-to-many field is a type of field used to establish a link between two database tables where one row can be linked to multiple rows of another table and vice versa.
Example 1: Tagging
Consider an image-sharing app....
Read: https://aliceridgway.hashnode.dev/how-to-use-the-many-to-many-field-in-your-django-models
@django_prog
How to Add CSS to a Django Project
Adding CSS to a Django project is something that should be easy, yet I usually get stuck and rely on previous projects to provide the settings to copy and paste.
Django classes CSS as a static asset. In layman’s terms, static assets are the files tha...
Read: https://aliceridgway.hashnode.dev/how-to-add-css-to-a-django-project
@django_prog
Adding CSS to a Django project is something that should be easy, yet I usually get stuck and rely on previous projects to provide the settings to copy and paste.
Django classes CSS as a static asset. In layman’s terms, static assets are the files tha...
Read: https://aliceridgway.hashnode.dev/how-to-add-css-to-a-django-project
@django_prog
How Django Models Work - A Beginner's Guide
The database is the core of any Django application. However, the language of databases (well... most of them) is SQL, not Python.
Something that makes Django very powerful is it allows you to build very complex data-driven web applications without ha...
Read: https://aliceridgway.hashnode.dev/how-django-models-work-a-beginners-guide
@django_prog
The database is the core of any Django application. However, the language of databases (well... most of them) is SQL, not Python.
Something that makes Django very powerful is it allows you to build very complex data-driven web applications without ha...
Read: https://aliceridgway.hashnode.dev/how-django-models-work-a-beginners-guide
@django_prog
Django Migrations: How to add non-nullable fields without a default value
In this post, we will go through how to add a non-nullable field and handle the existing rows. Instead of providing a default value or forcing the column to accept null values, we will automatically add values to existing rows, where each value is sp...
Read: https://aliceridgway.hashnode.dev/django-migrations-how-to-add-non-nullable-fields-without-a-default-value
@django_prog
In this post, we will go through how to add a non-nullable field and handle the existing rows. Instead of providing a default value or forcing the column to accept null values, we will automatically add values to existing rows, where each value is sp...
Read: https://aliceridgway.hashnode.dev/django-migrations-how-to-add-non-nullable-fields-without-a-default-value
@django_prog
How to use Foreign Keys in your Django project
Relational databases store data in multiple tables (one table per entity type) with relationships between the tables as required.
In Django, we define relationships by including a OneToOne, ForeignKey or ManyToMany field on the model. The field we ne...
Read: https://aliceridgway.hashnode.dev/how-to-use-foreign-keys-in-your-django-project
@django_prog
Relational databases store data in multiple tables (one table per entity type) with relationships between the tables as required.
In Django, we define relationships by including a OneToOne, ForeignKey or ManyToMany field on the model. The field we ne...
Read: https://aliceridgway.hashnode.dev/how-to-use-foreign-keys-in-your-django-project
@django_prog
A Beginners Guide to Unit Testing in Django
I’ve never met a developer who is against testing, not even on Twitter. But for those who aren’t experienced in writing unit and integration tests, it is more easily said than done. Given that few course creators include testing in their curriculum m...
Read: https://aliceridgway.hashnode.dev/a-beginners-guide-to-unit-testing-in-django
@django_prog
I’ve never met a developer who is against testing, not even on Twitter. But for those who aren’t experienced in writing unit and integration tests, it is more easily said than done. Given that few course creators include testing in their curriculum m...
Read: https://aliceridgway.hashnode.dev/a-beginners-guide-to-unit-testing-in-django
@django_prog
How to Test Django Models (with Examples)
Today we are looking at how to test Django models. If you're completely new to testing, then check out my beginner's guide to testing Django applications.
The application I'm going to test has a model called Movie. My application fetches movies from ...
Read: https://aliceridgway.hashnode.dev/how-to-test-django-models-with-examples
@django_prog
Today we are looking at how to test Django models. If you're completely new to testing, then check out my beginner's guide to testing Django applications.
The application I'm going to test has a model called Movie. My application fetches movies from ...
Read: https://aliceridgway.hashnode.dev/how-to-test-django-models-with-examples
@django_prog
Django Models: How to automatically populate slug fields for URLs
Today, we're looking at how to add a slug field to a Django model that automatically populates itself when you create an object in the database.
Say you’re creating a blog and instead of having each post as https://myblog/post/1, you want https://myb...
Read: https://aliceridgway.hashnode.dev/django-models-how-to-automatically-populate-slug-fields-for-urls
@django_prog
Today, we're looking at how to add a slug field to a Django model that automatically populates itself when you create an object in the database.
Say you’re creating a blog and instead of having each post as https://myblog/post/1, you want https://myb...
Read: https://aliceridgway.hashnode.dev/django-models-how-to-automatically-populate-slug-fields-for-urls
@django_prog
Django Migrations: how to avoid messing up your database
The language of Django is Python, but the language of relational databases is SQL. So how do you manage your application’s database without having to learn SQL?
What makes Django a powerful web framework is it lets you code all aspects of web server ...
Read: https://aliceridgway.hashnode.dev/django-migrations-how-to-avoid-messing-up-your-database
@django_prog
The language of Django is Python, but the language of relational databases is SQL. So how do you manage your application’s database without having to learn SQL?
What makes Django a powerful web framework is it lets you code all aspects of web server ...
Read: https://aliceridgway.hashnode.dev/django-migrations-how-to-avoid-messing-up-your-database
@django_prog
How to add Tags to your Blog (ManyToManyField Example)
In this tutorial, I am going to show you how to add tags to basic Django blog using a ManyToManyField.
Blogs are a common project used in beginner’s tutorials. This tutorial by Django Girls is one of my favourites, which has instructions on how build...
Read: https://aliceridgway.hashnode.dev/how-to-add-tags-to-your-blog-manytomanyfield-example
@django_prog
In this tutorial, I am going to show you how to add tags to basic Django blog using a ManyToManyField.
Blogs are a common project used in beginner’s tutorials. This tutorial by Django Girls is one of my favourites, which has instructions on how build...
Read: https://aliceridgway.hashnode.dev/how-to-add-tags-to-your-blog-manytomanyfield-example
@django_prog
CRUD Examples with Function Based Views
Learning how to CRUD data is a core skill for any web developer. CRUD stands for Create, Read, Update, Delete.
In this tutorial, I am going to the use the example of building a blogging app in Django. I am going to show you the code to create blog po...
Read: https://aliceridgway.hashnode.dev/crud-examples-with-function-based-views
@django_prog
Learning how to CRUD data is a core skill for any web developer. CRUD stands for Create, Read, Update, Delete.
In this tutorial, I am going to the use the example of building a blogging app in Django. I am going to show you the code to create blog po...
Read: https://aliceridgway.hashnode.dev/crud-examples-with-function-based-views
@django_prog
Django Foreign Key Example - How to Add Categories to a Blog
Foreign keys give you the power to link the tables in the database as you see fit, but they can be confusing at first.
In a previous post, we went through how to use Foreign Keys.
Today, I’m going to go through a full example of how you can add a For...
Read: https://aliceridgway.hashnode.dev/django-foreign-key-example-how-to-add-categories-to-a-blog
@django_prog
Foreign keys give you the power to link the tables in the database as you see fit, but they can be confusing at first.
In a previous post, we went through how to use Foreign Keys.
Today, I’m going to go through a full example of how you can add a For...
Read: https://aliceridgway.hashnode.dev/django-foreign-key-example-how-to-add-categories-to-a-blog
@django_prog
How to create a base template for your Django project
Django templates store the HTML for your projects. Django uses its own templating language to allow you to add data from the back-end into your pages.
Each page of your app will have its own template file but many pages will share some elements like ...
Read: https://aliceridgway.hashnode.dev/how-to-create-a-base-template-for-your-django-project
@django_prog
Django templates store the HTML for your projects. Django uses its own templating language to allow you to add data from the back-end into your pages.
Each page of your app will have its own template file but many pages will share some elements like ...
Read: https://aliceridgway.hashnode.dev/how-to-create-a-base-template-for-your-django-project
@django_prog
How to make a Foreign Key field non-nullable with a default
To make a foreign key field in Django non-nullable, you need to provide a default value for the existing rows. You might want to also provide a default value for new rows. Adding a default is easy when the value is a string or a date, but not when yo...
Read: https://aliceridgway.hashnode.dev/how-to-make-a-foreign-key-field-non-nullable-with-a-default
@django_prog
To make a foreign key field in Django non-nullable, you need to provide a default value for the existing rows. You might want to also provide a default value for new rows. Adding a default is easy when the value is a string or a date, but not when yo...
Read: https://aliceridgway.hashnode.dev/how-to-make-a-foreign-key-field-non-nullable-with-a-default
@django_prog