Answers for "django admin.py"

3

django-admin

python3 manage.py createsuperuser
Posted by: Guest on April-27-2020
0

show post id on django admin interface

class BookAdmin(admin.ModelAdmin):
    readonly_fields = ('id',)

admin.site.register(Book, BookAdmin)
Posted by: Guest on April-17-2020

Python Answers by Framework

Browse Popular Code Answers by Language