Disable Django admin

I'm in a selection process and I must develop a software in Django with the restriction of not being able to use the admin included in the framework.

I tried removing it from the INSTALLED_APPS. But when I run a migration I get the error:

'No installed app with label 'admin'

Is there any other configuration that I should do or what is the correct way to do it?

Upvotes: 0

Views: 740

Answers (1)

frnhr
frnhr

Reputation: 12903

Be sure to remove it from:

  • urls.py
    • remove from urlpatterns
    • remove the import statement
  • INSTALLED_APPS

That's it.

Upvotes: 2

Related Questions