Jump to content

Recommended Posts

Posted

Hi How're you all doing? hope you're keeping save.

 

I am learning the Django frame-work and  have been able to build a relatively simply CMS for myself but unfortunately some of the package requirement of my app have not been meet by the server.

 

To this end, I solicit for the installation of the following packages on the Tommy server

 

 
django-crispy-forms==1.9.1
django-markdownx==3.0.1
django-taggit==1.2.0
django-treenode==0.14.2

 

 

I would also like to have remote access to a postgres database on my account from any IP address

 

db-name = geoffery_blogDB

db-username = geoffery_admin

 

Thanks in anticipation and for the great work you and your team are doing.

 

  

Posted

Hey @Krydos thanks.

 

After your installation I still can't get the app to work 

stuck at error 500 and the error logs don't make sense to me 

Everything seems fine plus the code runs on my local machine 

[Sat May 16 21:07:23.025481 2020] [wsgi:error] [pid 41080] [client 159.89.54.246:39074]   File "/home/geofferyj/public_html/geoffery/dispatch.wsgi", line 10, in <module>, referer: http://geosblog.ml/
[Sat May 16 21:07:23.025056 2020] [wsgi:error] [pid 41080] [client 159.89.54.246:39074] mod_wsgi (pid=41080): Exception occurred processing WSGI script '/home/geofferyj/public_html/geoffery/dispatch.wsgi'., referer: http://geosblog.ml/
[Sat May 16 21:07:23.024989 2020] [wsgi:error] [pid 41080] [client 159.89.54.246:39074] mod_wsgi (pid=41080): Failed to exec Python script file '/home/geofferyj/public_html/geoffery/dispatch.wsgi'., referer: http://geosblog.ml/
[Sat May 16 21:07:23.023195 2020] [wsgi:error] [pid 41080] [client 159.89.54.246:39074]   File "/home/geofferyj/public_html/geoffery/dispatch.wsgi", line 10, in <module>, referer: http://geosblog.ml/
[Sat May 16 21:07:23.021672 2020] [wsgi:error] [pid 41080] [client 159.89.54.246:39074] mod_wsgi (pid=41080): Exception occurred processing WSGI script '/home/geofferyj/public_html/geoffery/dispatch.wsgi'., referer: http://geosblog.ml/
[Sat May 16 21:07:23.021567 2020] [wsgi:error] [pid 41080] [client 159.89.54.246:39074] mod_wsgi (pid=41080): Failed to exec Python script file '/home/geofferyj/public_html/geoffery/dispatch.wsgi'., referer: http://geosblog.ml/

this is some of the errors any help will be greatly appreciated

 

the url to the site is:

geosblog.ml

Posted

Here's your error:

 

[Sun May 17 05:41:29.185802 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322] mod_wsgi (pid=37849): Failed to exec Python script file '/home/geofferyj/public_html/geoffery/dispatch.wsgi'., referer: http://geosblog.ml/
[Sun May 17 05:41:29.185859 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322] mod_wsgi (pid=37849): Exception occurred processing WSGI script '/home/geofferyj/public_html/geoffery/dispatch.wsgi'., referer: http://geosblog.ml/
[Sun May 17 05:41:29.186162 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322] Traceback (most recent call last):, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186264 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]   File "/home/geofferyj/public_html/geoffery/dispatch.wsgi", line 10, in <module>, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186285 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]     application = get_wsgi_application(), referer: http://geosblog.ml/
[Sun May 17 05:41:29.186311 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]   File "/usr/local/python3.7/lib/python3.7/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186327 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]     django.setup(set_prefix=False), referer: http://geosblog.ml/
[Sun May 17 05:41:29.186350 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]   File "/usr/local/python3.7/lib/python3.7/site-packages/django/__init__.py", line 19, in setup, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186367 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING), referer: http://geosblog.ml/
[Sun May 17 05:41:29.186390 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]   File "/usr/local/python3.7/lib/python3.7/site-packages/django/conf/__init__.py", line 57, in __getattr__, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186406 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]     self._setup(name), referer: http://geosblog.ml/
[Sun May 17 05:41:29.186429 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]   File "/usr/local/python3.7/lib/python3.7/site-packages/django/conf/__init__.py", line 44, in _setup, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186445 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]     self._wrapped = Settings(settings_module), referer: http://geosblog.ml/
[Sun May 17 05:41:29.186468 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]   File "/usr/local/python3.7/lib/python3.7/site-packages/django/conf/__init__.py", line 107, in __init__, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186489 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]     mod = importlib.import_module(self.SETTINGS_MODULE), referer: http://geosblog.ml/
[Sun May 17 05:41:29.186514 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]   File "/usr/local/python3.7/lib/python3.7/importlib/__init__.py", line 127, in import_module, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186531 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]     return _bootstrap._gcd_import(name[level:], package, level), referer: http://geosblog.ml/
[Sun May 17 05:41:29.186554 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]   File "<frozen importlib._bootstrap>", line 1006, in _gcd_import, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186579 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]   File "<frozen importlib._bootstrap>", line 983, in _find_and_load, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186603 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]   File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186628 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186653 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]   File "<frozen importlib._bootstrap>", line 1006, in _gcd_import, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186677 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]   File "<frozen importlib._bootstrap>", line 983, in _find_and_load, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186702 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322]   File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked, referer: http://geosblog.ml/
[Sun May 17 05:41:29.186741 2020] [wsgi:error] [pid 37849] [client x.x.x.x:50322] ModuleNotFoundError: No module named 'geoffery', referer: http://geosblog.ml/
Posted

Hi good day.

 

I dont understand, geoffery is the name of the project 

the folder "geoffery" contains the project settings.py file, dispatch.wsgi and urls.py

 

and it works locally on my machine

 

below is the directory structure

.
├── blog
│   ├── admin.py
│   ├── apps.py
│   ├── forms.py
│   ├── __init__.py
│   ├── media
│   │   └── blog
│   ├── migrations
│   │   ├── 0001_initial.py
│   │   ├── __init__.py
│   │   └── __pycache__
│   │   ├── 0001_initial.cpython-37.pyc
│   │   ├── 0002_auto_20200511_0552.cpython-37.pyc
│   │   ├── 0003_auto_20200511_0555.cpython-37.pyc
│   │   ├── 0004_post_tags.cpython-37.pyc
│   │   ├── 0005_auto_20200511_1343.cpython-37.pyc
│   │   ├── 0006_auto_20200513_1030.cpython-37.pyc
│   │   ├── 0007_auto_20200515_2030.cpython-37.pyc
│   │   └── __init__.cpython-37.pyc
│   ├── models.py
│   ├── __pycache__
│   │   ├── admin.cpython-37.pyc
│   │   ├── apps.cpython-37.pyc
│   │   ├── forms.cpython-37.pyc
│   │   ├── __init__.cpython-37.pyc
│   │   ├── models.cpython-37.pyc
│   │   ├── urls.cpython-37.pyc
│   │   └── views.cpython-37.pyc
│   ├── static
│   │   └── blog
│   │   ├── css
│   │   │   ├── prism.css
│   │   │   └── style.css
│   │   ├── images
│   │   │   └── favicon
│   │   │   └── logo.png
│   │   └── js
│   │   ├── prism.js
│   │   └── scripts.js
│   ├── templates
│   │   └── blog
│   │   ├── base.html
│   │   ├── comment.html
│   │   ├── index.html
│   │   └── post_detail.html
│   ├── templatetags
│   │   ├── __init__.py
│   │   ├── markdown_2_html.py
│   │   └── __pycache__
│   │   ├── __init__.cpython-37.pyc
│   │   └── markdown_2_html.cpython-37.pyc
│   ├── tests.py
│   ├── urls.py
│   └── views.py
├── db.sqlite3
├── geoffery
│   ├── dispatch.wsgi
│   ├── __init__.py
│   ├── __pycache__
│   │   ├── __init__.cpython-37.pyc
│   │   ├── settings.cpython-37.pyc
│   │   ├── urls.cpython-37.pyc
│   │   └── wsgi.cpython-37.pyc
│   ├── settings.py
│   ├── urls.py
│   └── wsgi.py -> dispatch.wsgi
├── manage.py
└── requirements.txt

what do i do, how do i go about fixing this

Posted

Problem fixed 

 

turns out the problem was from the dispatch file.

 

don't know exactly what happened but when I deleted it and the wsgi.py file it was linked to and used the one in the cookie cutter 

it worked

 

 

Please you can mark solved

Guest
This topic is now closed to further replies.
×
×
  • Create New...