Jump to content

Recommended Posts

Posted (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 by an4s911
  • an4s911 changed the title to Django+Postgres (migration) and Logging

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...