M
M
Makfroy2019-08-07 13:31:56
Django
Makfroy, 2019-08-07 13:31:56

How to upload to hosting?

Hello, I'm uploading my site to jino hosting, which is made on django, and that's the problem.
Here is the wsgi file

import os, sys
virtual_env = os.path.expanduser('~/domains/домен_сайта/ipromaster/myvenv')
activate_this = os.path.join(virtual_env, 'bin/activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
sys.path.insert(0, os.path.join(os.path.expanduser('~'), 'ipromaster/ipromaster_project'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'ipromaster_project.settings'
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

The problem is that I get 500 errors in the logs
[Wed Aug 07 12:53:51 2019] [error] [client 66.249.69.235]   File "/home/users/v/имя_подключения/domains/домен/django.wsgi", line 6, in <module>
[Wed Aug 07 12:53:51 2019] [error] [client 66.249.69.235]     from django.core.wsgi import get_wsgi_application
[Wed Aug 07 12:53:51 2019] [error] [client 66.249.69.235] ImportError: No module named django.core.wsgi

As I understand it, the venv connection is not correct, is this code suitable for virtual env or am I confusing something?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question