topgeardavid Posted June 10, 2017 Author Posted June 10, 2017 Ah. I guess I also have to include all the 3rd party modules I'm using too.
topgeardavid Posted June 10, 2017 Author Posted June 10, 2017 Ok, I've added the two additional packages that I'm using (debug_toolbar and django_jinja) to the sys.path, so I'm guessing I shouldn't be getting errors about that now. Has a new error popped up now?
Krydos Posted June 10, 2017 Posted June 10, 2017 [Sat Jun 10 21:15:58.236674 2017] [wsgi:error] [pid 19289] [client krydos:31885] ModuleNotFoundError: No module named 'debug_toolbar', referer: http://edsby.drte.ch/
topgeardavid Posted June 10, 2017 Author Posted June 10, 2017 That's weird. I have this in my dispatch: sys.path.append('/home/dr/public_html/edsby/libs/debug_toolbar')
Krydos Posted June 10, 2017 Posted June 10, 2017 So I installed django-debug-toolbar on python 3.6 on Tommy At least it's not a worthess 500 error now http://edsby.drte.ch/
topgeardavid Posted June 10, 2017 Author Posted June 10, 2017 (edited) Hooray! It works. Thank you so much for all your help!One more thing, my interface shows up now, but request.session doesn't appear to be saving anything to the session. I'm using the django.contrib.sessions.backends.cache session engine. Is this a side effect of using wsgi? I've switched to cached_db which should work the way I need it to. However, it appears that sqlite is not permitted to write to my project's directory. I keep getting this error: OperationalError at /edsby_ui_login/ unable to open database file Edited June 10, 2017 by topgeardavid
topgeardavid Posted June 11, 2017 Author Posted June 11, 2017 Never mind. Switched to file-based sessions, and everything works perfectly now. Thanks again!
topgeardavid Posted June 11, 2017 Author Posted June 11, 2017 Do you know why I'm unable to open my db.sqlite3 for editing/writing? It appear to work fine when just being read from.
Krydos Posted June 11, 2017 Posted June 11, 2017 I never got sqlite working with django when I was experimenting. I just switched it to mysql and it worked perfectly. If you want to have it work with the same mysql database at home when you're developing and on the server without changing the settings each time just set up a remote mysql connection and it all should work.
topgeardavid Posted June 11, 2017 Author Posted June 11, 2017 I've created a new MySQL database, however I'm unable to connect to it for some reason. I'm using user 'dr_edsby' and database 'dr_edsby'. I'm consistently getting "access denied".
topgeardavid Posted June 12, 2017 Author Posted June 12, 2017 cPanel has a module for MySQL Remote where I was supposed to set all the IP addresses I allowed access to MySQL from. Everything works now. Thanks again!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now