Reputation: 11
I have created a simple django app with the help of tutorial found in djangoproject.com . There was no admin.py file created. Do I need to create one for the functioning of the app?
Upvotes: 1
Views: 192
Reputation: 14863
No.
You only need to create admin.py in order to access the object/module in the admin-view or/and override the default save-functions.
Upvotes: 0
Reputation: 33420
admin.py
if it exists, will be imported by admin.autodiscover()
. It is for the optional admin app and is not mandatory.
Upvotes: 3