How Model Validation Works in Django REST Framework
When working with models Django handles most of the validation. This is because Django's built-in validators can do most of the things you want. In a traditional Django application, validation is triggered when you use a ModelForm. Most of the time y...
Read: https://harunacodes.com/how-model-validation-works-in-django-rest-framework
When working with models Django handles most of the validation. This is because Django's built-in validators can do most of the things you want. In a traditional Django application, validation is triggered when you use a ModelForm. Most of the time y...
Read: https://harunacodes.com/how-model-validation-works-in-django-rest-framework
How to connect the React JS frontend with the Django backend
This tutorial will guide you through the easy steps. We are going to set up the Django backend first then we'll set up our react frontend and finally connect them.
Setting up the Project
First, you need to create the main project folder 📂 go inside ...
Read: https://amitgajare.hashnode.dev/how-to-connect-the-react-js-frontend-with-the-django-backend
This tutorial will guide you through the easy steps. We are going to set up the Django backend first then we'll set up our react frontend and finally connect them.
Setting up the Project
First, you need to create the main project folder 📂 go inside ...
Read: https://amitgajare.hashnode.dev/how-to-connect-the-react-js-frontend-with-the-django-backend
❤1
Simple Django Tip #5
In this post, I plan to continue with some more tips to keep in mind while designing Django models. Just in case you are curious what's Part 1, here it is 😀
And yes, I'm taking the same hypothetical website that sells and delivers ice cream 🍦. Belo...
Read: https://hellosambhavi.com/simple-django-tip-5
In this post, I plan to continue with some more tips to keep in mind while designing Django models. Just in case you are curious what's Part 1, here it is 😀
And yes, I'm taking the same hypothetical website that sells and delivers ice cream 🍦. Belo...
Read: https://hellosambhavi.com/simple-django-tip-5
How to deploy a Django app to Vercel using WSGI
Find a free home for your Django app and deploy it easily and quickly straight from GitHub.
I deployed my ecommerce site using this method
Step 1: Export the dependencies of the application to a file named requirements.txt pip freeze > requirements.t...
Read: https://ifiokambrose.hashnode.dev/how-to-deploy-a-django-app-to-vercel-using-wsgi
Find a free home for your Django app and deploy it easily and quickly straight from GitHub.
I deployed my ecommerce site using this method
Step 1: Export the dependencies of the application to a file named requirements.txt pip freeze > requirements.t...
Read: https://ifiokambrose.hashnode.dev/how-to-deploy-a-django-app-to-vercel-using-wsgi
Запуск альфа-теста Капибара(Новый Старый Пикабу)
Продолжу рассказывать о развитии Капибары, опенсорсном проекте, цели которого воспроизвести лучшее что было на пикабу и не наступить на их же "грабли". Первая часть здесь: https://habr.com/ru/articles/759598/
Пару недель назад у нас стартанул полу-закрытый альфа-тест. Сейчас выдаём ранний доступ на сайт kapi.bar отважным авторам-альфатестировщикам и активным комментаторам взамен просим слать нам багрепорты и пока быть самим себе модераторами. Функционал для создания постов, комментариев и выставления оценок для них есть. Ленты "Новое", "Тренды", "Топ", "Обсуждаемое" и поиск по тегам уже работают и доступны для чтения всем желающим.
Теперь об обновлениях за последние пару недель:
📸 Изображения
Теперь на сайте Капибары пользователи могут загружать изображения в посты и комментарии! Так же доступна загрузка изображений в формате apng, gif размером до 5мегабайт. Каждое загруженное изображение конвертируется на стороне бэкенда в формат webp для оптимального отображения и снижения нагрузки на инфраструктуру.
Читать: https://habr.com/ru/articles/773234/
Продолжу рассказывать о развитии Капибары, опенсорсном проекте, цели которого воспроизвести лучшее что было на пикабу и не наступить на их же "грабли". Первая часть здесь: https://habr.com/ru/articles/759598/
Пару недель назад у нас стартанул полу-закрытый альфа-тест. Сейчас выдаём ранний доступ на сайт kapi.bar отважным авторам-альфатестировщикам и активным комментаторам взамен просим слать нам багрепорты и пока быть самим себе модераторами. Функционал для создания постов, комментариев и выставления оценок для них есть. Ленты "Новое", "Тренды", "Топ", "Обсуждаемое" и поиск по тегам уже работают и доступны для чтения всем желающим.
Теперь об обновлениях за последние пару недель:
📸 Изображения
Теперь на сайте Капибары пользователи могут загружать изображения в посты и комментарии! Так же доступна загрузка изображений в формате apng, gif размером до 5мегабайт. Каждое загруженное изображение конвертируется на стороне бэкенда в формат webp для оптимального отображения и снижения нагрузки на инфраструктуру.
Читать: https://habr.com/ru/articles/773234/
🔥2
Open edX APIs Start to Finish
This article is geared towards individuals intending to set up and work with Open edX REST APIs. It also assumes you already have an Open edX instance set up in the cloud.
What is Open edX?
Open edX is a free and open-source learning management syste...
Read: https://clementlumumba.hashnode.dev/open-edx-apis-start-to-finish
This article is geared towards individuals intending to set up and work with Open edX REST APIs. It also assumes you already have an Open edX instance set up in the cloud.
What is Open edX?
Open edX is a free and open-source learning management syste...
Read: https://clementlumumba.hashnode.dev/open-edx-apis-start-to-finish
👍1
My Journey Deploying a Django + Supabase application to Vercel.
1. INTRODUCTION
Hey, there. In this article, I'll be talking about my experience in deploying a Django app using Supabase as a Database to Vercel. For the technical know-how, please refer to this article on kowe.io.
It's not a common thing to deploy ...
Read: https://mlscunizik.hashnode.dev/my-journey-deploying-a-django-supabase-application-to-vercel
1. INTRODUCTION
Hey, there. In this article, I'll be talking about my experience in deploying a Django app using Supabase as a Database to Vercel. For the technical know-how, please refer to this article on kowe.io.
It's not a common thing to deploy ...
Read: https://mlscunizik.hashnode.dev/my-journey-deploying-a-django-supabase-application-to-vercel
How to Set Up a Django Development Environment
Introduction
Django is a popular web framework written in Python. It enables the rapid development of secure and scalable websites. The first step to working with Django is setting up a Django development environment. This involves downloading and co...
Read: https://praisedev.hashnode.dev/how-to-set-up-a-django-development-environment
Introduction
Django is a popular web framework written in Python. It enables the rapid development of secure and scalable websites. The first step to working with Django is setting up a Django development environment. This involves downloading and co...
Read: https://praisedev.hashnode.dev/how-to-set-up-a-django-development-environment
Netrobase CMS Restful API DOCS
Netrobase CMS is a lightweight inhouse blogging tool. It adopts a headless CMS approach.
BASE URLS:
For Schools: api.schooldomain.com
For Netrobase: cms-api.netrobase.dev
Auth Endpoints:
/auth/ - [GET] Auth Index View
/auth/login/ - [POST] Logi...
Read: https://leonardnzekwe.hashnode.dev/netrobase-cms-restful-api-docs
Netrobase CMS is a lightweight inhouse blogging tool. It adopts a headless CMS approach.
BASE URLS:
For Schools: api.schooldomain.com
For Netrobase: cms-api.netrobase.dev
Auth Endpoints:
/auth/ - [GET] Auth Index View
/auth/login/ - [POST] Logi...
Read: https://leonardnzekwe.hashnode.dev/netrobase-cms-restful-api-docs
Enhancing Code Efficiency: A Deep Dive into the Popularity Algorithm
In the world of social platforms and content sharing, the order in which content is presented can significantly impact user engagement. To address this, developers often incorporate popularity algorithms to dynamically sort and display content based ...
Read: https://vicentereyes.org/enhancing-code-efficiency-a-deep-dive-into-the-popularity-algorithm
In the world of social platforms and content sharing, the order in which content is presented can significantly impact user engagement. To address this, developers often incorporate popularity algorithms to dynamically sort and display content based ...
Read: https://vicentereyes.org/enhancing-code-efficiency-a-deep-dive-into-the-popularity-algorithm
Если хотите быть в тренде и получать лучшее из мира IT, у Tproger есть 4 канала, которые вам в этом помогут:
— всё о нейросетях и ИИ: @neurochannel
— полезные сохранёнки на все случаи жизни: @prog_stuff
— нужные инструменты для ваших проектов: @prog_tools
— новости из мира технологий: @your_tech
Кстати, там сейчас ещё и розыгрыш подписок Telegram Premium проходит, так что заходите, смотрите условия и подписывайтесь.
— всё о нейросетях и ИИ: @neurochannel
— полезные сохранёнки на все случаи жизни: @prog_stuff
— нужные инструменты для ваших проектов: @prog_tools
— новости из мира технологий: @your_tech
Кстати, там сейчас ещё и розыгрыш подписок Telegram Premium проходит, так что заходите, смотрите условия и подписывайтесь.
👍2
Day 81: Project-10 (K8s)
Introduction
The project involves deploying a Django Todo app on AWS EC2 using Kubeadm Kubernetes cluster. (Master and Worker Node)
Kubernetes Cluster helps in the Auto-scaling and Auto-healing of your application.
This project involves deploying a D...
Read: https://aminchivilkar.hashnode.dev/day-81-project-10-k8s
Introduction
The project involves deploying a Django Todo app on AWS EC2 using Kubeadm Kubernetes cluster. (Master and Worker Node)
Kubernetes Cluster helps in the Auto-scaling and Auto-healing of your application.
This project involves deploying a D...
Read: https://aminchivilkar.hashnode.dev/day-81-project-10-k8s
Simple Django Tip #6
Introduction
Tailwind CSS is something that I have been exploring for quite sometime. Once I got comfortable with tailwind, I did not want to go back to using plain old CSS. A few reasons why I started to prefer tailwind:
It's very intuitive, more l...
Read: https://hellosambhavi.com/simple-django-tip-6
Introduction
Tailwind CSS is something that I have been exploring for quite sometime. Once I got comfortable with tailwind, I did not want to go back to using plain old CSS. A few reasons why I started to prefer tailwind:
It's very intuitive, more l...
Read: https://hellosambhavi.com/simple-django-tip-6
Testing Models with Pytest in Django: A practical approach | Testing Django Applications
Let's get started with the developers' nightmare, Software Testing. The term "testing" in software development refers to the process of verifying and validating if the software is bug-free and meets the requirements specifications as guided by its de...
Read: https://blog.anjalbam.com.np/testing-models-with-pytest-in-django-a-practical-approach-testing-django-applications
Let's get started with the developers' nightmare, Software Testing. The term "testing" in software development refers to the process of verifying and validating if the software is bug-free and meets the requirements specifications as guided by its de...
Read: https://blog.anjalbam.com.np/testing-models-with-pytest-in-django-a-practical-approach-testing-django-applications
👍2
Running a Django App Using Docker: A Step-by-Step Guide
Source code : -
https://github.com/rishabh-var123/react_django_demo_app
Docker is a powerful tool that allows developers to package and distribute applications along with their dependencies. In this article, we'll walk through the process of creati...
Read: https://risvarsh.hashnode.dev/running-a-django-app-using-docker-a-step-by-step-guide
Source code : -
https://github.com/rishabh-var123/react_django_demo_app
Docker is a powerful tool that allows developers to package and distribute applications along with their dependencies. In this article, we'll walk through the process of creati...
Read: https://risvarsh.hashnode.dev/running-a-django-app-using-docker-a-step-by-step-guide
Django for Web Development
Installing Django
After installing Python, we can install django using this command pip install django
Creating an environment
How to run locally
To run the project locally, first we have to change our directory to "mysite". We can do so by cd mysi...
Read: https://prakharalsoblogs.hashnode.dev/django-for-web-development
Installing Django
After installing Python, we can install django using this command pip install django
Creating an environment
How to run locally
To run the project locally, first we have to change our directory to "mysite". We can do so by cd mysi...
Read: https://prakharalsoblogs.hashnode.dev/django-for-web-development
Day 24 | Dockerizing a Django App
Pre-requisites
Install Django: https://docs.djangoproject.com/en/4.2/topics/install/
Install Docker: sudo apt update, sudo apt install docker.io -y. ( on EC2 Ubuntu Instance)
For a DevOps Engineer, it is very necessary to understand the basic s...
Read: https://saratdevopsengg.hashnode.dev/day-24-dockerizing-a-django-app
Pre-requisites
Install Django: https://docs.djangoproject.com/en/4.2/topics/install/
Install Docker: sudo apt update, sudo apt install docker.io -y. ( on EC2 Ubuntu Instance)
For a DevOps Engineer, it is very necessary to understand the basic s...
Read: https://saratdevopsengg.hashnode.dev/day-24-dockerizing-a-django-app
👍3
Django 5.0 release candidate 1 released
Django 5.0 release candidate 1 is the final opportunity for you to try out a deluge of exciting new features before Django 5.0 is released.
The release candidate stage marks the string freeze and the call for
translators to submit translations. Provided no major bugs are discovered that can't be solved in
the next two weeks, Django 5.0 final release is planned for December 4. Any potential
delays will be communicated on the Django forum.
Please use this opportunity to help find and fix bugs (which should be reported to the issue tracker),
you can grab a copy of the release candidate package from our downloads page or on PyPI.
The PGP key ID used for this release is Natalia Bidart: 2EE82A8D9470983E.
Read: https://www.djangoproject.com/weblog/2023/nov/20/django-50-rc1/
Django 5.0 release candidate 1 is the final opportunity for you to try out a deluge of exciting new features before Django 5.0 is released.
The release candidate stage marks the string freeze and the call for
translators to submit translations. Provided no major bugs are discovered that can't be solved in
the next two weeks, Django 5.0 final release is planned for December 4. Any potential
delays will be communicated on the Django forum.
Please use this opportunity to help find and fix bugs (which should be reported to the issue tracker),
you can grab a copy of the release candidate package from our downloads page or on PyPI.
The PGP key ID used for this release is Natalia Bidart: 2EE82A8D9470983E.
Read: https://www.djangoproject.com/weblog/2023/nov/20/django-50-rc1/
100 Days of Code
Getting Started
I will be Mostly Coding in Python but I will take Other Languages as my consideration.
Prerequisites
For any Language, You must Have the Language Installed in Your System.
Day 1
Today I Updated My E-Commerce Website in which I added a...
Read: https://justaman045.hashnode.dev/100-days-of-code
Getting Started
I will be Mostly Coding in Python but I will take Other Languages as my consideration.
Prerequisites
For any Language, You must Have the Language Installed in Your System.
Day 1
Today I Updated My E-Commerce Website in which I added a...
Read: https://justaman045.hashnode.dev/100-days-of-code
Исчерпывающее руководство по кэшированию в Django
В этой статье поговорим о том, что такое кэширование и о его преимуществах, как настроить кэширование в Django, какие бэкенд-системы поддерживают Django, а также о лучших практиках кэширования. Материал будет полезен в первую очередь начинающим веб-разработчикам.
Читать: https://habr.com/ru/companies/otus/articles/775318/
В этой статье поговорим о том, что такое кэширование и о его преимуществах, как настроить кэширование в Django, какие бэкенд-системы поддерживают Django, а также о лучших практиках кэширования. Материал будет полезен в первую очередь начинающим веб-разработчикам.
Читать: https://habr.com/ru/companies/otus/articles/775318/
❤2
Maximizing API Efficiency: Empowering API Consumers to Choose Their Data Fields
Imagine you've got a REST API for listing users, and each user's information shows up in 12 fields.
GET /v1/users/?page=1&page_size=15
{
"pagination_data": {
"total_records": 10000,
"pages": 667,
"prev_page_no": null,
...
Read: https://akshaythekkath.hashnode.dev/maximizing-api-efficiency-empowering-api-consumers-to-choose-their-data-fields
Imagine you've got a REST API for listing users, and each user's information shows up in 12 fields.
GET /v1/users/?page=1&page_size=15
{
"pagination_data": {
"total_records": 10000,
"pages": 667,
"prev_page_no": null,
...
Read: https://akshaythekkath.hashnode.dev/maximizing-api-efficiency-empowering-api-consumers-to-choose-their-data-fields
👍3