juanky Posted August 31, 2017 Share Posted August 31, 2017 Hello, I just uploaded my Django website and, after setting it up following the wiki, it is displaying a 500 internal server error when accesing to http://inforiesgo.heliohost.org I presume this is happening because my website is not properly configured (.htaccess, folder structure, ...) or because it is using the toolkit django-rest-framework that maybe is not installed in Tommy. Because of that, several questions came to my mind: Is it possible to install django-rest-framework (or other) in Tommy?Do I have access to the server error log files?My username in Tommy's server is iniesta. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Krydos Posted August 31, 2017 Share Posted August 31, 2017 Do I have access to the server error log files?No, the server error log files contain information for all accounts on the server. It would violate our privacy policy to allow a user to see private information from someone else's account. I presume this is happening because my website is not properly configured (.htaccess, folder structure, ...)Yeah, you got .htaccess file in the wrong place. You have it in /home/iniesta/public_html/ when it should be in /home/iniesta/public_html/inforiesgoserver/ I edited the wiki in a couple places to make this more obvious. Here is the list of modules currently installed on Tommy python 3.6 https://krydos.heliohost.org/cgi-bin/modules36.py If you're using something that's not on that list you'll need to request it to be installed, or upload the module to your account and do something like this https://stackoverflow.com/questions/67631/how-to-import-a-module-given-the-full-path Quote Link to comment Share on other sites More sharing options...
juanky Posted September 1, 2017 Author Share Posted September 1, 2017 Do I have access to the server error log files?No, the server error log files contain information for all accounts on the server. It would violate our privacy policy to allow a user to see private information from someone else's account. I presume this is happening because my website is not properly configured (.htaccess, folder structure, ...)Yeah, you got .htaccess file in the wrong place. You have it in /home/iniesta/public_html/ when it should be in /home/iniesta/public_html/inforiesgoserver/ I edited the wiki in a couple places to make this more obvious. Here is the list of modules currently installed on Tommy python 3.6 https://krydos.heliohost.org/cgi-bin/modules36.py If you're using something that's not on that list you'll need to request it to be installed, or upload the module to your account and do something like this https://stackoverflow.com/questions/67631/how-to-import-a-module-given-the-full-path Thank you so much! For now, I need python modules django-rest-framework (3.6.3) and geopy (1.1.0). Where should I request for these modules to be installed? Is it enough with this post? In the other hand, I have moved the .htaccess file to the path you told me and I only get to navigate through my server folders structure Quote Link to comment Share on other sites More sharing options...
miwilc Posted September 1, 2017 Share Posted September 1, 2017 Which python version? Quote Link to comment Share on other sites More sharing options...
juanky Posted September 1, 2017 Author Share Posted September 1, 2017 Which python version? 3.5.3 Quote Link to comment Share on other sites More sharing options...
Krydos Posted September 2, 2017 Share Posted September 2, 2017 3.5.3We don't have that version on any of our servers. We do have 3.6.0 and 3.6.1 though. Are you sure your script requires 3.5.3 or can you rewrite it for 3.6.x? Django can only be installed on one version of Python at a time per server. We're planning on doing Python 2.7 on Ricky when we get him running soon. Tommy's django is already installed on 3.6 and he's not going to be downgraded to 3.5.3. I need python modules django-rest-framework (3.6.3) and geopy (1.1.0).I'm assuming you need them installed on Tommy's django python version so I went ahead and installed django-rest-framework 3.6.4 and geopy 1.11.0. https://krydos.heliohost.org/cgi-bin/modules36.py Quote Link to comment Share on other sites More sharing options...
juanky Posted September 4, 2017 Author Share Posted September 4, 2017 3.5.3We don't have that version on any of our servers. We do have 3.6.0 and 3.6.1 though. Are you sure your script requires 3.5.3 or can you rewrite it for 3.6.x? Django can only be installed on one version of Python at a time per server. We're planning on doing Python 2.7 on Ricky when we get him running soon. Tommy's django is already installed on 3.6 and he's not going to be downgraded to 3.5.3. I need python modules django-rest-framework (3.6.3) and geopy (1.1.0).I'm assuming you need them installed on Tommy's django python version so I went ahead and installed django-rest-framework 3.6.4 and geopy 1.11.0. https://krydos.heliohost.org/cgi-bin/modules36.py Thank you so much! I think my scripts will work for python 3.6.x The list with the installed modules has a mistake: django-rest-framework 0.1.0 django 1.10.5 djangorestframework 3.6.4 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.