I start to learn Python tonight...When I put python cgi script file under ~/Sites/, they can be executed via localhost/~USER_NAME/SCRIPT_FILE_NAME.py! But my project root is not under Sites/, so every time I need copy the scripts file to Sites for test. Question is - can I update Apache conf, so that the web server can load scripts from my project src folder directly?
I've tried to edit /etc/apache2/users/USER_NAME.conf, and replace /Users/USER_NAME/Sites/ with /Users/USER_NAME/PATH_TO_PROJECT_SRC/. But I always met with 'Permission Denied' error then.
Can somebody tell me what's wrong and how to fix it? By the way, what's the best practice for python cgi script development?
Thanks a lot!