Answer the question
In order to leave comments, you need to log in
How to set admin settings in django?
How to set up the admin panel in Django? It is necessary to do there so that one item of settings is not displayed in the settings for adding an article. The tutorial says that in admin.py you need to configure the admin panel. Here is the code:
class ArticleAdmin(admin.ModelAdmin)
fields = ['arcticle_title', 'article_text', 'article_date',
admin.site.register(Article, ArticleAdmin)
Answer the question
In order to leave comments, you need to log in
https://docs.djangoproject.com/en/1.9/ref/contrib/...admin.ModelAdmin
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question