How to Use Slug Field in Django
Overview
In this article, you are going to learn about how to build a beautiful, SEO - friendly URL (Uniform Resource Locator) in django using the slug field and other utilities. The concept of URL encoding was also explored in terms of how it relate...
Read: https://bovage.hashnode.dev/how-to-use-slug-field-in-django
Overview
In this article, you are going to learn about how to build a beautiful, SEO - friendly URL (Uniform Resource Locator) in django using the slug field and other utilities. The concept of URL encoding was also explored in terms of how it relate...
Read: https://bovage.hashnode.dev/how-to-use-slug-field-in-django
I Created an Template for Django project for Running Under Services like replit, heroku etc
Preface
There are many Online Services Out There and We Want to Test or Run Our Django Project On There, But There are Some Issues Occurred For Running On Them.
Details
For Replit Online IDE
Like for Replit it is by default supported with Poetry Virt...
Read: https://blog.shriekdj.tk/i-created-an-template-for-django-project-for-running-under-services-like-replit-heroku-etc
Preface
There are many Online Services Out There and We Want to Test or Run Our Django Project On There, But There are Some Issues Occurred For Running On Them.
Details
For Replit Online IDE
Like for Replit it is by default supported with Poetry Virt...
Read: https://blog.shriekdj.tk/i-created-an-template-for-django-project-for-running-under-services-like-replit-heroku-etc
❤1👍1
How to Build a To-Do Checklist with Django ✏️
Hi all! 💙 😁
In this blog post, I will demonstrate how to build a to-do checklist using Django. See the video 🎥 below ⤵️ for a 30 seconds clip that showcases how the app functions.
https://youtu.be/zrq8uQu6SMc
On a locally deployed Django web appli...
Read: https://fafacodes.hashnode.dev/how-to-build-a-to-do-checklist-with-django
Hi all! 💙 😁
In this blog post, I will demonstrate how to build a to-do checklist using Django. See the video 🎥 below ⤵️ for a 30 seconds clip that showcases how the app functions.
https://youtu.be/zrq8uQu6SMc
On a locally deployed Django web appli...
Read: https://fafacodes.hashnode.dev/how-to-build-a-to-do-checklist-with-django
Datta Able Django - Free Template
Hello!
This article presents an open-source Django Template built on top of a colorful, pixel-perfect BS4 design. Django Datta Able can be downloaded from Github (MIT License) and used for unlimited hobby & commercial projects. For newcomers, Django...
Read: https://app-generator.hashnode.dev/datta-able-django-free-template
Hello!
This article presents an open-source Django Template built on top of a colorful, pixel-perfect BS4 design. Django Datta Able can be downloaded from Github (MIT License) and used for unlimited hobby & commercial projects. For newcomers, Django...
Read: https://app-generator.hashnode.dev/datta-able-django-free-template
👍1
A few words about memory profiling in Python
Memory issues in applications are quite common. Luckily, in Python you have to work with memory directly only when writing CPython extensions, so you have to deal with such issues less often. Using frameworks also reduces the risks of causing memory ...
Read: https://blog.filonov.dev/a-few-words-about-memory-profiling-in-python
Memory issues in applications are quite common. Luckily, in Python you have to work with memory directly only when writing CPython extensions, so you have to deal with such issues less often. Using frameworks also reduces the risks of causing memory ...
Read: https://blog.filonov.dev/a-few-words-about-memory-profiling-in-python
setUp() & tearDown() in Python Unit Testing
I'm pretty sure you've already used/seen unit tests in the projects before. Have you ever wondered about how Django actually prepares you an isolated environment for testing your project without affecting other resources like your database? Before we...
Read: https://imsadra.me/setup-and-teardown-in-python-unit-testing
I'm pretty sure you've already used/seen unit tests in the projects before. Have you ever wondered about how Django actually prepares you an isolated environment for testing your project without affecting other resources like your database? Before we...
Read: https://imsadra.me/setup-and-teardown-in-python-unit-testing
Today I learned: How to setup and work with the virtual environment in Django and why you should use it
What is a virtual environment?
A virtual environment is a set of version or local settings that is specific to a particular project, instance or any entity which uses that environment. In simple terms, you create an environment that satisfies the nee...
Read: https://thinkersclub.xyz/today-i-learned-how-to-setup-and-work-with-the-virtual-environment-in-django-and-why-you-should-use-it
What is a virtual environment?
A virtual environment is a set of version or local settings that is specific to a particular project, instance or any entity which uses that environment. In simple terms, you create an environment that satisfies the nee...
Read: https://thinkersclub.xyz/today-i-learned-how-to-setup-and-work-with-the-virtual-environment-in-django-and-why-you-should-use-it
Prefetching in Django
A lot has already been written about prefetching, as it is one of the best ways to improve performance for slow admin pages. I'd like to share some tricks to be able to work with large amounts of rows and inlines.
Using prefetch_related and select_re...
Read: https://blog.jurriantromp.nl/prefetching-in-django
A lot has already been written about prefetching, as it is one of the best ways to improve performance for slow admin pages. I'd like to share some tricks to be able to work with large amounts of rows and inlines.
Using prefetch_related and select_re...
Read: https://blog.jurriantromp.nl/prefetching-in-django
Prediction of house price using Machine Learning and host a Django website on heroku
In this post, we will do a simple machine learning project to predict the Boston house price and build a simple website using Django. The website will be then hosted on heroku web hosting platform. For the model, we are just going to create a basic m...
Read: https://wulfi.hashnode.dev/prediction-of-house-price-using-machine-learning-and-host-a-django-website-on-heroku
In this post, we will do a simple machine learning project to predict the Boston house price and build a simple website using Django. The website will be then hosted on heroku web hosting platform. For the model, we are just going to create a basic m...
Read: https://wulfi.hashnode.dev/prediction-of-house-price-using-machine-learning-and-host-a-django-website-on-heroku
How To Deploy A Django App To Heroku
HEROKU?
Yes! Heroku. It is a web-based platform that allows you to deploy and manage web applications so that they can be accessible by anyone within their browser. Heroku supports many programming languages including Python/Django!
It has a free pla...
Read: https://gracious-grace.hashnode.dev/how-to-deploy-a-django-app-to-heroku
HEROKU?
Yes! Heroku. It is a web-based platform that allows you to deploy and manage web applications so that they can be accessible by anyone within their browser. Heroku supports many programming languages including Python/Django!
It has a free pla...
Read: https://gracious-grace.hashnode.dev/how-to-deploy-a-django-app-to-heroku
Few hacks to speed up defining apis based on django rest framwork, inspired from fastapi
Read: https://pythonawesome.com/few-hacks-to-speed-up-defining-apis-based-on-django-rest-framwork-inspired-from-fastapi/
Read: https://pythonawesome.com/few-hacks-to-speed-up-defining-apis-based-on-django-rest-framwork-inspired-from-fastapi/
Создание проекта Django для регистрации и входа/выхода из системы
Поэкспериментируем с Django и расширим знания о его системе аутентификации пользователя.
Читать: Создание проекта Django для регистрации и входа/выхода из системы .
Поэкспериментируем с Django и расширим знания о его системе аутентификации пользователя.
Читать: Создание проекта Django для регистрации и входа/выхода из системы .
NOP::Nuances of programming
Создание проекта Django для регистрации и входа/выхода из системы
Поэкспериментируем с Django и расширим знания о его системе аутентификации пользователя.
Generic Functionality without Generic Relations
Read: http://djangotricks.blogspot.com/2022/04/generic-functionality-without-generic-relations.html
Read: http://djangotricks.blogspot.com/2022/04/generic-functionality-without-generic-relations.html
Creating Music Application
Overview
Hey there, been a while. Let's try picking up from where we stopped, now, shall we?
I would be adding some models to the project so we can upload songs into albums. You might be wondering what models are or so, yeah, it's no big deal. In my ...
Read: https://cws.hashnode.dev/creating-music-application
Overview
Hey there, been a while. Let's try picking up from where we stopped, now, shall we?
I would be adding some models to the project so we can upload songs into albums. You might be wondering what models are or so, yeah, it's no big deal. In my ...
Read: https://cws.hashnode.dev/creating-music-application
💩3👍1
Creating a Django application
Install Python
Get the latest version of python from the link below
https://www.python.org/downloads/
Check Python version
python --version
Check pip version
pip --version
Installing Django
python -m pip install django
Check Django Version
python ...
Read: https://ndrohith09.hashnode.dev/creating-a-django-application
Install Python
Get the latest version of python from the link below
https://www.python.org/downloads/
Check Python version
python --version
Check pip version
pip --version
Installing Django
python -m pip install django
Check Django Version
python ...
Read: https://ndrohith09.hashnode.dev/creating-a-django-application
Django-based Todo App
Setting your Django App
https://ndrohith09.hashnode.dev/creating-a-django-application
Here in this blog , I have created a django project called simple_todo and a django app called simple_todo_app .
The structure of your django project looks as below...
Read: https://ndrohith09.hashnode.dev/django-based-todo-app
Setting your Django App
https://ndrohith09.hashnode.dev/creating-a-django-application
Here in this blog , I have created a django project called simple_todo and a django app called simple_todo_app .
The structure of your django project looks as below...
Read: https://ndrohith09.hashnode.dev/django-based-todo-app
How to Integrate Paystack in Django Rest Framework
Introduction
Paystack is a payment gateway that helps individuals and businesses in Africa to accept payments from anywhere in the world. In this tutorial, I will be creating a wallet system API using Django Rest Framework that allows users to depos...
Read: https://ubaydah.hashnode.dev//how-to-integrate-paystack-in-django-rest-framework
Introduction
Paystack is a payment gateway that helps individuals and businesses in Africa to accept payments from anywhere in the world. In this tutorial, I will be creating a wallet system API using Django Rest Framework that allows users to depos...
Read: https://ubaydah.hashnode.dev//how-to-integrate-paystack-in-django-rest-framework
Ubaydah's Blog🎉
How to Integrate Paystack in Django Rest Framework
Introduction
Paystack is a payment gateway that helps individuals and businesses in Africa to accept payments from anywhere in the world. In this tutorial, I will be creating a wallet system API using Django Rest Framework that allows users to depos...
Paystack is a payment gateway that helps individuals and businesses in Africa to accept payments from anywhere in the world. In this tutorial, I will be creating a wallet system API using Django Rest Framework that allows users to depos...
Асинхронный django, status update. Проект vinyl
Всем привет.
Некоторое время назад я писал про альтернативные возможности, как можно добавить в django асинхронность (есть официальный подход, изложенный в DEP-09). С тех пор у меня получилось оформить свои идеи в нечто относительно цельное, что вылилось в vinyl project. Описание проекта читайте на гитхабе, здесь же я хочу рассказать о его интересных особенностях.
Проект родился после нескольких предыдущих попыток, когда я узнал, что django, в действительности, очень неплохо расширяем. Например, он поддерживает использование нескольких баз данных одновременно (притом что модели одни и те же). Соответственно, например, ничего не мешает считать использование асинхронного драйвера как использование другой логической базы данных - чем я и воспользовался.
В итоге, получилось поместить всю асинхронную функциональность внутрь менеджера моделей. Не понадобилось делать форк django или его частей.
Вначале - небольшое демо того, что получилось. Для тестирования я использовал асинхронный драйвер psycopg3 (если что, вот ссылка на database backend).
Демо
Читать: https://habr.com/ru/post/660831/
Всем привет.
Некоторое время назад я писал про альтернативные возможности, как можно добавить в django асинхронность (есть официальный подход, изложенный в DEP-09). С тех пор у меня получилось оформить свои идеи в нечто относительно цельное, что вылилось в vinyl project. Описание проекта читайте на гитхабе, здесь же я хочу рассказать о его интересных особенностях.
Проект родился после нескольких предыдущих попыток, когда я узнал, что django, в действительности, очень неплохо расширяем. Например, он поддерживает использование нескольких баз данных одновременно (притом что модели одни и те же). Соответственно, например, ничего не мешает считать использование асинхронного драйвера как использование другой логической базы данных - чем я и воспользовался.
В итоге, получилось поместить всю асинхронную функциональность внутрь менеджера моделей. Не понадобилось делать форк django или его частей.
Вначале - небольшое демо того, что получилось. Для тестирования я использовал асинхронный драйвер psycopg3 (если что, вот ссылка на database backend).
Демо
Читать: https://habr.com/ru/post/660831/
👍1
История одного CRUD'а
В 2015 году, когда я пришёл на своё текущее место работы, мне было непривычно от необыкновенной свободы действий. Буквально, на новом месте можно было проявить весь творческий потенциал как DevOps-евангелиста. Мне нравилось выстраивать процессы, автоматизировать рутину, делать разработку удобной. Больше всего я люблю оптимизации, а больше всего ненавижу - рутину.
Эта история одной боли и попытке не просто "принять обезболивающее", а реально излечить её. Поэтому готовьтесь переварить лонгрид.
Читать это всё...
Читать: https://habr.com/ru/post/660847/
В 2015 году, когда я пришёл на своё текущее место работы, мне было непривычно от необыкновенной свободы действий. Буквально, на новом месте можно было проявить весь творческий потенциал как DevOps-евангелиста. Мне нравилось выстраивать процессы, автоматизировать рутину, делать разработку удобной. Больше всего я люблю оптимизации, а больше всего ненавижу - рутину.
Эта история одной боли и попытке не просто "принять обезболивающее", а реально излечить её. Поэтому готовьтесь переварить лонгрид.
Читать это всё...
Читать: https://habr.com/ru/post/660847/
👍1