Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to call the Django-Admin style of providing much with less code

I like the django admin very much.

You only need to configure it. Making the admin site available for some models hardly "software development".

I would call it "from coding to configuring". But that's not a term.

How is the general term? A well-known term which has an explanation at wikipedia or in a book would be nice.

I tried Scaffolding, but I think this is not the right term, since no code gets generated.

like image 554
guettli Avatar asked Dec 11 '19 15:12

guettli


People also ask

What is Django admin?

Free Python course with 35 real-time projects Start Now!! Django Admin is one of the most important tools of Django. It’s a full-fledged application with all the utilities a developer need. Django Admin’s task is to provide an interface to the admin of the web project. Django’s Docs clearly state that Django Admin is not made for frontend work.

How to register a model on the Django admin?

We need to register these models on the Django Admin. To do this, edit the products/admin.py file. Paste this code after clearing the file. from django.contrib import admin from .models import Product # Register your models here. # DataFlair admin.site.register (Product) We also need a superuser to access the admin.

How to make your own admin site interface in Django?

The default interface has minimal features and is not that user friendly. But Django does provide a way to make our own admin site interface; that is by using the Django ModelAdmin Library. We will now work with ModelAdmin and see how we can modify the admin page according to our needs.

What is the best way to manage content in Django?

One of the most powerful parts of Django is the automatic admin interface. It reads metadata from your models to provide a quick, model-centric interface where trusted users can manage content on your site. The admin’s recommended use is limited to an organization’s internal management tool.


1 Answers

One might call such approach a "Parameterized Programming".

https://dl.acm.org/citation.cfm?id=2283189

like image 89
Krzysztof Szularz Avatar answered Nov 14 '22 16:11

Krzysztof Szularz