Forums

Problem with Django administration Log in with Django CMS

Hello friends, I have locally created a web application based on Django CMS that uses a SQLite3 database and has data stored in the project.db file. Access data of users and administrators are also stored here in the auth_user table. Local login runs fine, but after porting this app (aitaci.pythonanywhere.com) to pythonanywhere using the $ pa_autoconfigure_django.py command, everything runs fine. The problem is that the login dialog appears first and does not accept any access data that is in the pythonanywhere database. As a result, I cannot get further into the application through this Django administration login window. When checking the auth_user table on pythonanywhere, I found out that the login data there is the same as the local one. What could be my problem please?

The most likely cause of that is that you are using a relative path to your database without paying attention to the working directory. See https://help.pythonanywhere.com/pages/NoSuchFileOrDirectory/