Django admin tips and tricks - Part 1
Here you go:
How to make a column editable in the Django admin change list view in a Model?
We can make a column editable in the Django admin using an attribute list_editable as given in the below example. This can be helpful if you want to bulk upd...
Read: https://blog.devjunction.in/django-admin-tips-and-tricks-part-1
Here you go:
How to make a column editable in the Django admin change list view in a Model?
We can make a column editable in the Django admin using an attribute list_editable as given in the below example. This can be helpful if you want to bulk upd...
Read: https://blog.devjunction.in/django-admin-tips-and-tricks-part-1
👍2🥱1
Django admin tips and tricks - Part 2
If you want to read Part 1 of this blog, click on this link, for this whole series, click on this link.
How to disable Add button in the Django admin for certain Model admins?
Sometimes you do not want the admin to add new entries in a Model admin, h...
Read: https://blog.devjunction.in/django-admin-tips-and-tricks-part-2
If you want to read Part 1 of this blog, click on this link, for this whole series, click on this link.
How to disable Add button in the Django admin for certain Model admins?
Sometimes you do not want the admin to add new entries in a Model admin, h...
Read: https://blog.devjunction.in/django-admin-tips-and-tricks-part-2
👍1👎1
Сделай сам: МИС на коленке и в облаке
Решение в облаке — фактически стандарт. Делаешь сервис по доставке воды, еды, и т.д. - делай
Браузер как клиент — фактически стандарт. И не важно, что там сервер отдает: MPA, SPA, PWA, главное чтобы работало. Работало в смысле cashflow, а не просто: "красиво тут".
Но, как известно, всегда "есть один нюанс". Есть данные, чувствительные к сетевой передаче. Конфиденциальные, персональные, секретные наконец. Где храниться, как передаются, где обрабатываются — важные "нюансы". Храните персональные данные в облаке? тогда, "мы к вам уже пришли". Впрочем, если и не так серьезно, всегда найдется повод сказать: "Я этим XENам как-то не доверяю".
Делали мы тут крошечную медицинскую ИС (МИС) у себя, аккурат с нюансами передачи по сети персональных данных. Как оно вышло излагаем ниже.
Читать: https://habr.com/ru/post/703732/
Решение в облаке — фактически стандарт. Делаешь сервис по доставке воды, еды, и т.д. - делай
aaS
. И не важно, какой asS
, главное, чтобы работало. Инфраструктура, софт, платформа, монолиты разбиваем, микросервисы внедряем, угадайте, где шарик, в смысле user
.Браузер как клиент — фактически стандарт. И не важно, что там сервер отдает: MPA, SPA, PWA, главное чтобы работало. Работало в смысле cashflow, а не просто: "красиво тут".
Но, как известно, всегда "есть один нюанс". Есть данные, чувствительные к сетевой передаче. Конфиденциальные, персональные, секретные наконец. Где храниться, как передаются, где обрабатываются — важные "нюансы". Храните персональные данные в облаке? тогда, "мы к вам уже пришли". Впрочем, если и не так серьезно, всегда найдется повод сказать: "Я этим XENам как-то не доверяю".
Делали мы тут крошечную медицинскую ИС (МИС) у себя, аккурат с нюансами передачи по сети персональных данных. Как оно вышло излагаем ниже.
Читать: https://habr.com/ru/post/703732/
Django + Wagtail: The Perfect Combination for Your Next Web Project
Are you a Django developer looking for a content management system (CMS) to use on your next web project? Look no further than Wagtail.
Wagtail is a CMS built on top of Django. It leverages the power and flexibility of Django, while providing an intu...
Read: https://sammy-code.com/django-wagtail-the-perfect-combination-for-your-next-web-project
Are you a Django developer looking for a content management system (CMS) to use on your next web project? Look no further than Wagtail.
Wagtail is a CMS built on top of Django. It leverages the power and flexibility of Django, while providing an intu...
Read: https://sammy-code.com/django-wagtail-the-perfect-combination-for-your-next-web-project
How to add custom column in the Django Admin change list view?
Note: If you want to read the blog series on Django Admin customization, then click here.
Suppose you have a Book model which has an author field as given below.
# app_name/models.py
class Book(models.Model):
...
author = models.ForeignKey(...
Read: https://blog.devjunction.in/how-to-add-custom-column-in-the-django-admin-change-list-view
Note: If you want to read the blog series on Django Admin customization, then click here.
Suppose you have a Book model which has an author field as given below.
# app_name/models.py
class Book(models.Model):
...
author = models.ForeignKey(...
Read: https://blog.devjunction.in/how-to-add-custom-column-in-the-django-admin-change-list-view
Django Berry BS5 - Free PyPi Library
Hello coders!
This article presents Django Admin Berry, the PyPi integration of this iconic design for Django. The latest stable version is provided by Berry maintainers, including Dark Mode, widgets, charts, and authentication pages. The product can...
Read: https://app-generator.hashnode.dev/django-berry-bs5-free-pypi-library
Hello coders!
This article presents Django Admin Berry, the PyPi integration of this iconic design for Django. The latest stable version is provided by Berry maintainers, including Dark Mode, widgets, charts, and authentication pages. The product can...
Read: https://app-generator.hashnode.dev/django-berry-bs5-free-pypi-library
How to make fields to be read only fields in the Django model admin forms?
Note: If you want to read the blog series on Django Admin customization, then click here.
Suppose you have a Book model which has an is_active field as given below.
# app_name/models.py
class Book(models.Model):
...
is_active = models.Boole...
Read: https://blog.devjunction.in/how-to-make-fields-to-be-read-only-fields-in-the-django-model-admin-forms
Note: If you want to read the blog series on Django Admin customization, then click here.
Suppose you have a Book model which has an is_active field as given below.
# app_name/models.py
class Book(models.Model):
...
is_active = models.Boole...
Read: https://blog.devjunction.in/how-to-make-fields-to-be-read-only-fields-in-the-django-model-admin-forms
How to Dockerize Django Project in 2 minutes
To run a Django project in Docker, you will need to have Docker installed on your system. You can then create a Dockerfile for your Django project that specifies the necessary dependencies and commands for running the project.
Here is an example of a...
Read: https://giasuddin90.hashnode.dev/how-to-dockerize-django-project-in-2-minutes
To run a Django project in Docker, you will need to have Docker installed on your system. You can then create a Dockerfile for your Django project that specifies the necessary dependencies and commands for running the project.
Here is an example of a...
Read: https://giasuddin90.hashnode.dev/how-to-dockerize-django-project-in-2-minutes
Don't forget django application deployment best practice
Deploying a Python Django application can be a daunting task for even the most experienced developers. With so many potential pitfalls and best practices to consider, it's important to approach the process with a clear understanding of what needs to ...
Read: https://giasuddin90.hashnode.dev/dont-forget-django-application-deployment-best-practice
Deploying a Python Django application can be a daunting task for even the most experienced developers. With so many potential pitfalls and best practices to consider, it's important to approach the process with a clear understanding of what needs to ...
Read: https://giasuddin90.hashnode.dev/dont-forget-django-application-deployment-best-practice
How to change the input widget into a textfield in Django Model Admin form?
Note: If you want to read the blog series on Django Admin customization, then click here.
Suppose you have a Book model which has a description field as given below.
# app_name/models.py
class Book(models.Model):
...
description = models.Ch...
Read: https://blog.devjunction.in/how-to-change-the-input-widget-into-a-textfield-in-django-model-admin-form
Note: If you want to read the blog series on Django Admin customization, then click here.
Suppose you have a Book model which has a description field as given below.
# app_name/models.py
class Book(models.Model):
...
description = models.Ch...
Read: https://blog.devjunction.in/how-to-change-the-input-widget-into-a-textfield-in-django-model-admin-form
👍1
How to enable CORS on the Django REST Framework
When we develop rest API and want to consume from different website we have to enable cors.
In this tutorial, i will show you how to enable cors
Install package
pip install Django-cors-headers and then add it to your installed apps:
INSTALLED_APPS = ...
Read: https://giasuddin90.hashnode.dev/how-to-enable-cors-on-the-django-rest-framework
When we develop rest API and want to consume from different website we have to enable cors.
In this tutorial, i will show you how to enable cors
Install package
pip install Django-cors-headers and then add it to your installed apps:
INSTALLED_APPS = ...
Read: https://giasuddin90.hashnode.dev/how-to-enable-cors-on-the-django-rest-framework
👍1
Deploy Django App over Ubuntu VPS with Gunicorn + Nginix + PostgreSQL
In this tutorial, we will deploy a Django app over Ubuntu VPS with Gunicorn + Nginix. We are going to use Vultr VPS for this tutorial. You can use any other VPS provider as well.
1. Create a new user
adduser yourusername
usermod -aG sudo youruserna...
Read: https://selftaughtdev.me/deploy-django-app-over-ubuntu-vps-with-gunicorn-nginix-postgresql
In this tutorial, we will deploy a Django app over Ubuntu VPS with Gunicorn + Nginix. We are going to use Vultr VPS for this tutorial. You can use any other VPS provider as well.
1. Create a new user
adduser yourusername
usermod -aG sudo youruserna...
Read: https://selftaughtdev.me/deploy-django-app-over-ubuntu-vps-with-gunicorn-nginix-postgresql
Differentiate Django and Laravel
Basic for ComparisonDjangoLaravelDefinitionA full-stack web toolkit is Django.A full stack web framework is Laravel.PlatformIt is cross-platform compatible.It is cross-platform compatible.MaintenanceDjango is backed by the Django Software Foundation....
Read: https://offpage.hashnode.dev/differentiate-django-and-laravel
Basic for ComparisonDjangoLaravelDefinitionA full-stack web toolkit is Django.A full stack web framework is Laravel.PlatformIt is cross-platform compatible.It is cross-platform compatible.MaintenanceDjango is backed by the Django Software Foundation....
Read: https://offpage.hashnode.dev/differentiate-django-and-laravel
How to customize the Queryset in the Django admin change list view?
Note: If you want to read the blog series on Django Admin customization, then click here.
Suppose you have a Book model as given below.
# app_name/models.py
class Book(models.Model):
...
title = models.CharField(max_length=150)
is_activ...
Read: https://blog.devjunction.in/how-to-customize-the-queryset-in-the-django-admin-change-list-view
Note: If you want to read the blog series on Django Admin customization, then click here.
Suppose you have a Book model as given below.
# app_name/models.py
class Book(models.Model):
...
title = models.CharField(max_length=150)
is_activ...
Read: https://blog.devjunction.in/how-to-customize-the-queryset-in-the-django-admin-change-list-view
👍1
A guide to writing documentation
As a fellow developer, I have spent my share in writing and reading documentation. Since documentation is the foundation for good developer experience, here are a few things that you should consider while writing it.
Where to start?
A great and effic...
Read: https://anonymousblogger.hashnode.dev/a-guide-to-writing-documentation
As a fellow developer, I have spent my share in writing and reading documentation. Since documentation is the foundation for good developer experience, here are a few things that you should consider while writing it.
Where to start?
A great and effic...
Read: https://anonymousblogger.hashnode.dev/a-guide-to-writing-documentation
Top 10 Pros and Cons of using Python for Web Development
Python is a popular programming language that is widely used in web development, scientific computing, data analysis, and many other fields. Here are some of the key advantages and disadvantages of using Python for web development:
Pros:
1. Python ha...
Read: https://giasuddin90.hashnode.dev/top-10-pros-and-cons-of-using-python-for-web-development
Python is a popular programming language that is widely used in web development, scientific computing, data analysis, and many other fields. Here are some of the key advantages and disadvantages of using Python for web development:
Pros:
1. Python ha...
Read: https://giasuddin90.hashnode.dev/top-10-pros-and-cons-of-using-python-for-web-development
Deploying a Django Application to Heroku
You're just a developer who writes code for a small project and hides it from the public. Instead of letting the world know about what you are working on. If you answered yes to this, you are missing out on something big.
Not just one thing, but a lo...
Read: https://mathewsmusukuma.com/deploying-a-django-application-to-heroku-clbp8hmbe000308l32f2q64ph
You're just a developer who writes code for a small project and hides it from the public. Instead of letting the world know about what you are working on. If you answered yes to this, you are missing out on something big.
Not just one thing, but a lo...
Read: https://mathewsmusukuma.com/deploying-a-django-application-to-heroku-clbp8hmbe000308l32f2q64ph
Outreachy: Week two
This article is the second of a series of articles detailing my Outreachy internship experience with Wagtail.
In last week's article about my Outreachy experience, I presented a brief background of myself along with my core values. Additionally, I pr...
Read: https://activuscode.hashnode.dev/outreachy-week-two
This article is the second of a series of articles detailing my Outreachy internship experience with Wagtail.
In last week's article about my Outreachy experience, I presented a brief background of myself along with my core values. Additionally, I pr...
Read: https://activuscode.hashnode.dev/outreachy-week-two
How to change the number of objects (rows) to show in the Django admin change list view?
Note: If you want to read the blog series on Django Admin customization, then click here.
Suppose you have a Book model as given below.
# app_name/models.py
class Book(models.Model):
...
title = models.CharField(max_length=150)
is_activ...
Read: https://blog.devjunction.in/how-to-change-the-number-of-objects-rows-to-show-in-the-django-admin-change-list-view
Note: If you want to read the blog series on Django Admin customization, then click here.
Suppose you have a Book model as given below.
# app_name/models.py
class Book(models.Model):
...
title = models.CharField(max_length=150)
is_activ...
Read: https://blog.devjunction.in/how-to-change-the-number-of-objects-rows-to-show-in-the-django-admin-change-list-view
Introduction to AWS IoT Core Using Python
This Article is for Python Devs who are new to AWS IoT Core. Here I will be sharing an experimental version, How we can use AWS IoT Core for Authentication, Send messages to AWS IoT Core via MQTT and save that messages to Database through AWS Lambda ...
Read: https://prashanthsworld.hashnode.dev/introduction-to-aws-iot-core-using-python
This Article is for Python Devs who are new to AWS IoT Core. Here I will be sharing an experimental version, How we can use AWS IoT Core for Authentication, Send messages to AWS IoT Core via MQTT and save that messages to Database through AWS Lambda ...
Read: https://prashanthsworld.hashnode.dev/introduction-to-aws-iot-core-using-python