Is it possible Django's administrative panel to make user fields?



  • Such questions are of particular interest: Is there any way to ask specific fields a particular mask? Is it possible to remove the shooter from the field integer? Is it possible to determine the size of the field and the length of the data input, even if there is a possibility to create a mask, I think it's possible to do it?



  • Yes, to make changes to the management panel style, perhaps I suggest you look towards the redefinition of admin.py.

    In brief, you create and complete the .cs files (in some cases .js) necessary for you to change, and you display references to these files in admin.py, the example of the code:

    from django.contrib import admin
    class MyModelAdmin(admin.ModelAdmin):
        class Media:   
            css = {
                 'all': ('/templates/css/admin-extra.css ',)
            }
    

    admin.site.register(MyModel,MyModelAdmin)



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2