an4s911 Posted yesterday at 05:04 PM Posted yesterday at 05:04 PM (edited) I have a django api running on heliohost on the domain anasbashir.helioho.st. And I got wsgi access also got postgres enabled. But how can I access the postgres. I want to be able to migrate the django models into database, for that either I need remote access to the postgres or terminal access to the server. The manage.py file is located in /httpdocs/manage.py And the command to migrate is python manage.py migrate. Secondly, where do I access the traceback log if any error occurs, I couldn’t find it. Additionally, if I wanted to log something using python’s logging module, where can I log to, and how can I access it. Edit: I wanted to mention that I did find the logs. Just that I couldn’t find any traceback in it. Edited yesterday at 05:06 PM by an4s911 Quote
wolstech Posted 5 hours ago Posted 5 hours ago Tracebacks usually dump into the Plesk Logs section if there is one. They're a bit hard to read because of how Plesk formats them, but they're usually there. If you can't find what you need, just let us know and Krydos can check the backend for any additional logs. As for Postgres, there is no management tool and it does not support remote access by default. You have to either install something like Adminer, or request remote access to it so you can connect from a desktop tool like pgadmin and configure it that way. What is the name of the database and database user that needs remote access? Quote
an4s911 Posted 5 hours ago Author Posted 5 hours ago (edited) The name of the database is: an4s911_anas and the user is: an4s911_admin Also give me info on how I can connect to it from my Django app. Should I just use localhost? Will that work? Edited 5 hours ago by an4s911 add user info Quote
an4s911 Posted 5 hours ago Author Posted 5 hours ago 3 minutes ago, wolstech said: If you can't find what you need, just let us know and Krydos can check the backend for any additional logs. Yeah, I couldn't find them. In plesk I opened logs. I only get the Requests and Http status codes. I don't see the trackeback of the errors. Quote
wolstech Posted 1 hour ago Posted 1 hour ago To access it from a Django app running on our server, yes just localhost. To access it remotely, you’ll use the server host name (tommy.heliohost.org). Escalating to Krydos. 1 Quote
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.