Jump to content

Issue with my django web app?


denisewo

Recommended Posts

Hey guys,

 

First off, thank so much for this project. I can't believe it's free and it's truly a godsend.

 

Secondly, I'm having a really silly issue which I'm sure has an incredibly simple answer. I'm very sorry to bother, but I've already checked all the docs and old questions and answers. 

 

I'm trying to run a django project,

at: http://praxeum.heliohost.org/

username: denisewo

 

However, when I access that site, I get an index of all the files, the django project running?

 

What should I do? 

 

Again, thanks so much for this incredible tool. Can't believe it is free.

 

Best,

Denise 

 

Link to comment
Share on other sites

Update, sorry about this, but I think that I might have done something wrong in my dispatch.wsgi or my .htaccess file, as when I try to get into http://praxeum.heliohost.org/mysite/ I get a 400 error. 

 

I'm unsure what is the error though? Sorry!! Thanks again, so so much, for everything.

[Mon Aug 10 13:12:19.361964 2020] [wsgi:error] [pid 30003] [client 1.36.32.55:53555]   File "/home/denisewo/public_html/mysite/dispatch.wsgi", line 10, in <module>, referer: http://praxeum.heliohost.org/
[Mon Aug 10 13:12:19.360184 2020] [wsgi:error] [pid 30003] [client 1.36.32.55:53555] mod_wsgi (pid=30003): Exception occurred processing WSGI script '/home/denisewo/public_html/mysite/dispatch.wsgi'., referer: http://praxeum.heliohost.org/
[Mon Aug 10 13:12:19.360037 2020] [wsgi:error] [pid 30003] [client 1.36.32.55:53555] mod_wsgi (pid=30003): Failed to exec Python script file '/home/denisewo/public_html/mysite/dispatch.wsgi'., referer: http://praxeum.heliohost.org/
 

in public_html/mysite:

 

dispatch.wsgi
import os, sys
 
# edit your username below
sys.path.append("/home/denisewo/public_html/mysite")
 
from django.core.wsgi import get_wsgi_application
 
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
 
application = get_wsgi_application()
 

 

Edited by denisewo
Link to comment
Share on other sites


[Tue Aug 11 04:00:30.871555 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] mod_wsgi (pid=5200): Failed to exec Python script file '/home/denisewo/public_html/mysite/dispatch.wsgi'.
[Tue Aug 11 04:00:30.871624 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] mod_wsgi (pid=5200): Exception occurred processing WSGI script '/home/denisewo/public_html/mysite/dispatch.wsgi'.
[Tue Aug 11 04:00:30.872747 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] Traceback (most recent call last):
[Tue Aug 11 04:00:30.872822 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] File "/home/denisewo/public_html/mysite/dispatch.wsgi", line 10, in <module>
[Tue Aug 11 04:00:30.872834 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] application = get_wsgi_application()
[Tue Aug 11 04:00:30.872847 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] File "/usr/local/python3.7/lib/python3.7/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
[Tue Aug 11 04:00:30.872856 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] django.setup(set_prefix=False)
[Tue Aug 11 04:00:30.872866 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] File "/usr/local/python3.7/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
[Tue Aug 11 04:00:30.872874 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] apps.populate(settings.INSTALLED_APPS)
[Tue Aug 11 04:00:30.872885 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] File "/usr/local/python3.7/lib/python3.7/site-packages/django/apps/registry.py", line 89, in populate
[Tue Aug 11 04:00:30.872892 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] app_config = AppConfig.create(entry)
[Tue Aug 11 04:00:30.872902 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] File "/usr/local/python3.7/lib/python3.7/site-packages/django/apps/config.py", line 90, in create
[Tue Aug 11 04:00:30.872910 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] module = import_module(entry)
[Tue Aug 11 04:00:30.872920 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] File "/usr/local/python3.7/lib/python3.7/importlib/__init__.py", line 127, in import_module
[Tue Aug 11 04:00:30.872927 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] return _bootstrap._gcd_import(name[level:], package, level)
[Tue Aug 11 04:00:30.872938 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
[Tue Aug 11 04:00:30.872949 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] File "<frozen importlib._bootstrap>", line 983, in _find_and_load
[Tue Aug 11 04:00:30.872961 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
[Tue Aug 11 04:00:30.872989 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] ModuleNotFoundError: No module named 'postman'
You can't just import any random module that you want without requesting it to be installed first. If you try to import a module that isn't installed you just get a very unhelpful 500 error. You can check which modules are already installed on Johnny's python 3.7 with this link https://krydos2.heliohost.org/cgi-bin/modules37.py I tried to install postman for you, but it is incompatible with our shared hosting. Probably because the last time it was updated was 9 years ago. If you really need this module you'll need to get a vps https://www.heliohost.org/vps/
Link to comment
Share on other sites

Ah that's quick thank you!!!

 

I'm so sorry to bombard you but, last ting, could you also move me to an IP address accessible in China, as I spend half my time there?

 

Again, so sorry to bother you, and thank you so very much.

 

I'm so so sorry to bother you. Thank you so so much.

Link to comment
Share on other sites

Unfortunately, it does not seem as if my site is accessible in China. http://praxeum.heliohost.org/mysite/en/

 

I'm so sorry for the inconvenience. 

 

Edit: that's strange - http://praxeum.heliohost.org/mysite/ is not accessible, but http://praxeum.heliohost.org/ is as I can see the directory listing. 

Edited by denisewo
Link to comment
Share on other sites

  • 3 weeks later...
[Tue Aug 11 04:00:30.871555 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] mod_wsgi (pid=5200): Failed to exec Python script file '/home/denisewo/public_html/mysite/dispatch.wsgi'.
[Tue Aug 11 04:00:30.871624 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] mod_wsgi (pid=5200): Exception occurred processing WSGI script '/home/denisewo/public_html/mysite/dispatch.wsgi'.
[Tue Aug 11 04:00:30.872747 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] Traceback (most recent call last):
[Tue Aug 11 04:00:30.872822 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]   File "/home/denisewo/public_html/mysite/dispatch.wsgi", line 10, in <module>
[Tue Aug 11 04:00:30.872834 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]     application = get_wsgi_application()
[Tue Aug 11 04:00:30.872847 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]   File "/usr/local/python3.7/lib/python3.7/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
[Tue Aug 11 04:00:30.872856 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]     django.setup(set_prefix=False)
[Tue Aug 11 04:00:30.872866 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]   File "/usr/local/python3.7/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
[Tue Aug 11 04:00:30.872874 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]     apps.populate(settings.INSTALLED_APPS)
[Tue Aug 11 04:00:30.872885 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]   File "/usr/local/python3.7/lib/python3.7/site-packages/django/apps/registry.py", line 89, in populate
[Tue Aug 11 04:00:30.872892 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]     app_config = AppConfig.create(entry)
[Tue Aug 11 04:00:30.872902 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]   File "/usr/local/python3.7/lib/python3.7/site-packages/django/apps/config.py", line 90, in create
[Tue Aug 11 04:00:30.872910 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]     module = import_module(entry)
[Tue Aug 11 04:00:30.872920 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]   File "/usr/local/python3.7/lib/python3.7/importlib/__init__.py", line 127, in import_module
[Tue Aug 11 04:00:30.872927 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]     return _bootstrap._gcd_import(name[level:], package, level)
[Tue Aug 11 04:00:30.872938 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]   File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
[Tue Aug 11 04:00:30.872949 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]   File "<frozen importlib._bootstrap>", line 983, in _find_and_load
[Tue Aug 11 04:00:30.872961 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733]   File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
[Tue Aug 11 04:00:30.872989 2020] [wsgi:error] [pid 5200] [client 1.36.32.55:56733] ModuleNotFoundError: No module named 'postman'
You can't just import any random module that you want without requesting it to be installed first. If you try to import a module that isn't installed you just get a very unhelpful 500 error. You can check which modules are already installed on Johnny's python 3.7 with this link https://krydos2.heliohost.org/cgi-bin/modules37.py I tried to install postman for you, but it is incompatible with our shared hosting. Probably because the last time it was updated was 9 years ago. If you really need this module you'll need to get a vps https://www.heliohost.org/vps/

 

Hi Admin,

Where we can find this logs after deploying the project. It will be really helpful.

Link to comment
Share on other sites

You can find limited logs at https://tommy.heliohost.org:2083/frontend/paper_lantern/stats/errlog.html in cpanel. Usually an admin can get a little better logs for you though. The reason users can't access the detailed logs directly themselves is because it's a shared server and there could be private information regarding the thousands of other accounts on your server. If you need direct access to full logs you'll need to get a VPS where you'll be the only user on the whole server, and you'll have root command line access to all of the logs.

Link to comment
Share on other sites

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...