[Fixed]-Can't access admin page with PostgreSQL database

1👍

Every django app needs a Site to run, So
write in django shell

 $> ./manage.py shell
>>> from django.contrib.sites.models import Site
>>> site = Site()
>>> site.domain = 'example.com'
>>> site.name = 'example.com'
>>> site.save()

Leave a comment