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
Django News - Django 4.0.4, 3.2.13, and 2.2.28 security releases - Apr 15th 2022
Read: https://django-news.com/issues/123
Read: https://django-news.com/issues/123
Django News - Django 4.0.4, 3.2.13, and 2.2.28 security releases - Apr 15th 2022
Read: https://django-news.com/issues/123
Read: https://django-news.com/issues/123
Masonite Project - Python Web Framework Installation
In this series of posts, I want to present a Python web framework that I found and I believe it makes sense to see how it handles things. The very interesting thing for me is that it brings Laravel (php web framework) goods to Python world.
According...
Read: https://blog.popolo.dev/masonite-project-python-web-framework-installation
In this series of posts, I want to present a Python web framework that I found and I believe it makes sense to see how it handles things. The very interesting thing for me is that it brings Laravel (php web framework) goods to Python world.
According...
Read: https://blog.popolo.dev/masonite-project-python-web-framework-installation
Masonite Project - Install TailwindCSS
By default, Masonite is coming with TailwindCSS from CDN.
We can find this in base.html that is located in templates folder. This is the base template that we can use it to extend to further pages.
For the authentication pages, the relevant base.htm...
Read: https://blog.popolo.dev/masonite-project-install-tailwindcss
By default, Masonite is coming with TailwindCSS from CDN.
We can find this in base.html that is located in templates folder. This is the base template that we can use it to extend to further pages.
For the authentication pages, the relevant base.htm...
Read: https://blog.popolo.dev/masonite-project-install-tailwindcss
How I Integrated Zapier into my Django Project
Read: http://djangotricks.blogspot.com/2022/04/how-i-integrated-zapier-into-my-django-project.html
Read: http://djangotricks.blogspot.com/2022/04/how-i-integrated-zapier-into-my-django-project.html