user2071283
user2071283

Reputation: 11

Is admin.py necessary is every django app?

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

Answers (2)

OptimusCrime
OptimusCrime

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

jpic
jpic

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

Related Questions