topgeardavid Posted June 10, 2017 Author Share Posted June 10, 2017 Ah. I guess I also have to include all the 3rd party modules I'm using too. Quote Link to comment Share on other sites More sharing options...
Krydos Posted June 10, 2017 Share Posted June 10, 2017 Yep. Quote Link to comment Share on other sites More sharing options...
topgeardavid Posted June 10, 2017 Author Share 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? Quote Link to comment Share on other sites More sharing options...
Krydos Posted June 10, 2017 Share 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/ Quote Link to comment Share on other sites More sharing options...
topgeardavid Posted June 10, 2017 Author Share Posted June 10, 2017 That's weird. I have this in my dispatch: sys.path.append('/home/dr/public_html/edsby/libs/debug_toolbar') Quote Link to comment Share on other sites More sharing options...
Krydos Posted June 10, 2017 Share 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/ Quote Link to comment Share on other sites More sharing options...
topgeardavid Posted June 10, 2017 Author Share 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 Quote Link to comment Share on other sites More sharing options...
topgeardavid Posted June 11, 2017 Author Share Posted June 11, 2017 Never mind. Switched to file-based sessions, and everything works perfectly now. Thanks again! Quote Link to comment Share on other sites More sharing options...
Krydos Posted June 11, 2017 Share Posted June 11, 2017 Cool. Quote Link to comment Share on other sites More sharing options...
topgeardavid Posted June 11, 2017 Author Share 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. Quote Link to comment Share on other sites More sharing options...
Krydos Posted June 11, 2017 Share 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. Quote Link to comment Share on other sites More sharing options...
topgeardavid Posted June 11, 2017 Author Share 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". Quote Link to comment Share on other sites More sharing options...
Krydos Posted June 11, 2017 Share Posted June 11, 2017 Remotely or locally? Quote Link to comment Share on other sites More sharing options...
topgeardavid Posted June 11, 2017 Author Share Posted June 11, 2017 Remotely Quote Link to comment Share on other sites More sharing options...
topgeardavid Posted June 12, 2017 Author Share 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.