My task is to launch a project on Django in pyharm.
conditions.
- ubuntu 13.04, Python 2.7
- I launch IDE from my user (for example, NISK).
- for the treatment The database user www-data is used to the database.
- when the page is requested, the script is made from the user WWW-DATA, then there is a request to the database.
In order for everything to work, I start the application using the trace. Command:
Sudo -u www-data python manage.py runserver test_domain.ru: 8000 after looking at the Pycharm settings, I did not find an option to set the script from which user to start. As a result, an error appears (since Pycharm is launched from the user of Nick, and the request is processed from WWW-DATA):
Operationalerror: Fatal: Peer Authentication Failed for User "www -data" "
decided to try bypass - use remote debugging - start a script from the right user on a local PC and get to it Pycharm (again, I did not find a typical VS option" "join the process"). He made the settings in accordance with the leadership
during the launch gives the following error:
Traceback (Most Recent Call Last): File ""/Home/Engine/Manage_debug.py "" , line 17 , in & lt; moodule & gt; from pydev import pydevdimporterror: no module named pydev pythonpath , installed pycharm-debug.egg ( easy_install pycharm-debug.eggg ), import tracks sys.path.Append ('/Development/IDE/Pycharm-2.7.3/Pycharm-debug.egg') , but nothing helps.
Please tell me how to improve the import error, as well as how to set the user, from which the launch will be launched, from which the launch Start manage.py
ps would be glad to answer from.
updating
on a working server, the project works through mod_wsgi + apiche , which means how I mean how I I understand that the script will be executed from the user www-data.
question@mail.ru
·