Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Django can't get access to sqlite3 database
I am currently running a server instance of the one-click install option for Django Ubuntu 14.04.
This server is running a Django app using NGINX, sqlite3, and gunicorn.
I set up
letsencrypt properly and it is used to serve my website with ssl.
I deleted all of the files in
/home/django/dango_project/ and replaced them with my own.
When I load my website, everything works fine, except for my admin site.
I am able to log in to the admin site when I run the django_project locally, but it isn’t working when the project is in production at my website.
You can verify that my
db.sqlite3 file exists and contains posts by going to kensch.com/blog.
With debug disabled, my website gives a
Server Error (500) after I log in to my admin site.
With debug enabled, my website gives
OperationalError at /admin/ after logging into the admin site.
attempt to write a readonly database
I have been trying to get into my admin site for nearly 5 hours now, no google searches are helping.
I appreciate any help in advance!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×