python - Trouble deploying Django application on Ubuntu server -


so i've managed setup django project on server following this tutorial. able run on port 8000 doing

python manage.py runserver 

but want deploy server's domain name or ip address without specifying port. after configuring 000-default.conf instructed on tutorial 500 internal server error

error.log:

[tue mar 28 12:34:29.006570 2017] [wsgi:error] [pid 12773:tid 140065216325376] [remote 31.49.113.30:62072] mod_wsgi (pid=12773): target wsgi script '/home/ubuntu/myproject/myproject/wsgi.py' cannot loaded python module. [tue mar 28 12:34:29.006623 2017] [wsgi:error] [pid 12773:tid 140065216325376] [remote 31.49.113.30:62072] mod_wsgi (pid=12773): exception occurred processing wsgi script '/home/ubuntu/myproject/myproject/wsgi.py'. [tue mar 28 12:34:29.006695 2017] [wsgi:error] [pid 12773:tid 140065216325376] [remote 31.49.113.30:62072] traceback (most recent call last): [tue mar 28 12:34:29.006714 2017] [wsgi:error] [pid 12773:tid 140065216325376] [remote 31.49.113.30:62072]   file "/home/ubuntu/myproject/myproject/wsgi.py", line 12, in <module> [tue mar 28 12:34:29.006718 2017] [wsgi:error] [pid 12773:tid 140065216325376] [remote 31.49.113.30:62072]     django.core.wsgi import get_wsgi_application [tue mar 28 12:34:29.006733 2017] [wsgi:error] [pid 12773:tid 140065216325376] [remote 31.49.113.30:62072] importerror: no module named 'django' 

i'm new django , ubuntu don't understand error, appreciated, thanks

web server not able find existing django installation. either haven't installed yet, or have not configured server use virtual environment (in case using it).

importerror: no module named 'django'


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -