Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/16/2020 in all areas

  1. The account rebal155 has been removed.
    1 point
  2. Which account are you trying to delete? I see two accounts, rebal15 (active on Ricky), and rebal155 (inactive on Johnny).
    1 point
  3. Can you try this? https://www.helionet.org/index/topic/37964-solved-error-when-using-flask-sqlalchemy/?p=168576
    1 point
  4. When the account is removed, the domains will go with it automatically. If you get an error about dns records needing removed when adding them back, let us know and we can clean them up for you.
    1 point
  5. The easiest way to get started with python on a server is with cgi. Really the only difference between cgi and running the script on your home computer is cgi needs to output a content type header. Open file manager https://johnny.heliohost.org:2083/frontend/paper_lantern/filemanager/index.htmlDouble click public_htmlDouble click cgi-binIn the top left click + FileType test.py as your filenameClick Create New FileHighlight the test.py file and click PermissionsCheck execute on all three columns so it says 755Click Change PermissionsClick reload and make sure the 755 shows up under the permissions columnHighlight test.py and click Code EditorLeave UTF-8 as the encoding and click EditCopy/paste this in #!/usr/bin/python3.7 print("Content-Type: text/html\n\n") print("Heliohost rules!") Click Save ChangesGo to http://silverb.heliohost.org/cgi-bin/test.pyIf everything worked it should say "Heliohost rules!" in your browser. The first line is the shebang. That's what tells the server which version of python to use. On Tommy and Johnny you can pick between #!/usr/bin/python2.7 version 2.7.13 #!/usr/bin/python3.7 version 3.7 and python3.6 for Ricky. You can see the modules that are currently installed on the Johnny python versions at https://krydos2.heliohost.org/cgi-bin/modules27.py https://krydos2.heliohost.org/cgi-bin/modules37.py If you don't see the module you need your script will probably give a useless 500 error when you try to import the missing module. Just make a post here on the forums stating your server, the version of python you're using, and the module you need. The next line is the content type header. This is important so the server knows what to do with the output that follows. If you forget it your script will give a useless 500 error. The content type header always has to have the two end lines immediately after it. That's what the \n\n is. Let us know if you have any other questions.
    1 point
×
×
  • Create New...