How to deploy web2py in PythonAnywhere, but from a Dropbox public folder?

I tried using this link How to deploy web2py in PythonAnywhere? to deploy Web2py to Pythonanywhere, but from the Dropbox public folder.

path = '/home/my_username/Dropbox/web2py' 

Result...

 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request 

.

+4
source share
1 answer

Have you looked at your error logs? (in /var/log/apache/error.log you can access them through the Web tab). You may find that you have an ImportError because the package you depend on is not available in PythonAnywhere.

Most packages can be installed by running

 pip install --user package_name 

Then you also need to add the following directory to sys.path (in addition to the web2py folder):

 /home/my_username/.local/lib/python2.7/site-packages 

[update] - This question was moved to the PythonAnywhere forums, where we continued to debug the problem. final decision was related to Dropbox permissions

http://www.pythonanywhere.com/forums/topic/9/

The answer was

 chmod g+w /home/Lazarof/Dropbox/web2py 

Because the Dropbox folder has special permissions for pythonanywhere, our Dropbox Sync client needs permissions to access the group.

+2
source

Source: https://habr.com/ru/post/1384981/


All Articles