[Fixed]-NameError:Admin not found in django

25👍

You forgot to import admin in the project’s urls.py. Read harder.

9👍

Uncomment the following in your project’s urls.py.

from django.contrib import admin

admin.autodiscover()

8👍

Faced with the same problem in tutorial.
Try to add in models.py:

from django.contrib import admin

Leave a comment