[Fixed]-Django admin error – cannot access admin page

1πŸ‘

βœ…

The problem was with virtualenv – it was not enabled.

In order to check the version of Django (and the path to the module), you could add the following lines to ./manage.py file:

print(__import__('django')) # Should print the module information
print(__import__('django').__file__) # Should print the location of __init__.py file

Right after the if __name__ == '__main__' line.

πŸ‘€awesoon

Leave a comment