Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Django Admin Tutorial - Full Customization (2018)

Автор: The Dumbfounds

Загружено: 2018-06-26

Просмотров: 177996

Описание:

7 Tips For Getting Better At Django:
https://mailchi.mp/dea592ab3f6d/tips-...

In this video you will learn how to customize the django admin view.

django-suit package license:
http://djangosuit.com/pricing/

Starting point for this tutorial:
https://github.com/Rechunk/snippetpro...

You are going to learn:

how to register and unregister models
how to add filtering
how to add a custom input and button which update a field on all objects
how to change the theme using the django-suit package.

Registering and unregistering models is quite easy. Simple use the admin.site.register/admin.site.unregister functions and provide them with the model.

In order to take our customization further, we'll then create an admin class for the snippet and alter various attributes, such as filter, exclude, list_display, list_filter.

To include an input with a button, we'll need to override the change_list_template attribute and set it to our desired path. In the template, we'll then extend from admin/change_list.html, and can now override the various blocks. For our custom behaviour to work, we'll set up a form with an action, override the get_urls() to include a custom path we'll create that the form will then navigate to, and finally write a view that will handle our request.

Configuring our custom theme is easy. We'll pip install django-suit, create a custom SuitConfig and include it in our INSTALLED_APPS in the settings.py. Now, we can alter the SuitConfig attributes to "suit" (that wordplay...) our needs.

Anyway, you can find the step-by-steps instructions in this video.

If you enjoyed this video, make sure to subscribe and share it with anyone you think could enjoy it as well.

I hope to see you inside of the next episode,

Cheers.

Django Admin Tutorial - Full Customization (2018)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Django Tutorial for Beginners – Build Powerful Backends

Django Tutorial for Beginners – Build Powerful Backends

Django Testing Tutorial - Testing Views #3

Django Testing Tutorial - Testing Views #3

How to Customise the Django admin. Django Project Tutorial [22]

How to Customise the Django admin. Django Project Tutorial [22]

Django Rest Framework | Serializers & CRUD

Django Rest Framework | Serializers & CRUD

GraphQL Python Tutorial With Graphene (+ Django Integration)

GraphQL Python Tutorial With Graphene (+ Django Integration)

Django REST API Tutorial - Guide to Viewsets, Routers and Serializers #2 (2018)

Django REST API Tutorial - Guide to Viewsets, Routers and Serializers #2 (2018)

Django tutorial - How to improve your Django admin

Django tutorial - How to improve your Django admin

Complete Django CRUD Operations

Complete Django CRUD Operations

Learn the basics of Django's Model Managers and Querysets

Learn the basics of Django's Model Managers and Querysets

Data Dashboard App in Django || Tutorial 2020 || Adding Graphs || World Map

Data Dashboard App in Django || Tutorial 2020 || Adding Graphs || World Map

How to add AdminLTE3 into Django2

How to add AdminLTE3 into Django2

Learn Django - Build an Asynchronous Chatroom with Django and Channels

Learn Django - Build an Asynchronous Chatroom with Django and Channels

Django Plotly Dash Tutorial How to Connect Dashboards & Graphs into a Python Full Stack Application

Django Plotly Dash Tutorial How to Connect Dashboards & Graphs into a Python Full Stack Application

Using the Inline Form Set Factory in Django (Part 1 of 2)

Using the Inline Form Set Factory in Django (Part 1 of 2)

Django 2 Class-Based Views Tutorial (+ Generic Views)

Django 2 Class-Based Views Tutorial (+ Generic Views)

How to deploy a Django project with DigitalOcean

How to deploy a Django project with DigitalOcean

Create Update & Delete (CRUD) with  Model Forms | Django (3.0)  Crash Course Tutorials (pt 10)

Create Update & Delete (CRUD) with Model Forms | Django (3.0) Crash Course Tutorials (pt 10)

Creating a Custom User Model (Django)

Creating a Custom User Model (Django)

Full Stack React & Django [1] - Basic REST API

Full Stack React & Django [1] - Basic REST API

Лучшие советы, как стать лучшим разработчиком Django | Eduonix

Лучшие советы, как стать лучшим разработчиком Django | Eduonix

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com