use sys.path.append to fix the compatiability with apache mod_wsgi
import os
import sys
# append path for the compatiability of apache2 mod_wsgi
sys.path.append('/var/www/html')| #include <stdio.h> | |
| #include <stdarg.h> | |
| // calculate the sum until -1 is met | |
| int sum( int first, ... ) { | |
| int ret = 0, val = first; | |
| va_list marker; | |
| va_start(marker, first); | |
| while ( -1 != val ) { |
Common Python Tools: Using virtualenv, Installing with Pip, and Managing Packages
How to Run Django with mod_wsgi and Apache with a virtualenv Python environment on a Debian VPS
How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu
How to setup Django server with virtualenv on Ubuntu Server 12.04
Private framework is for apple use only, and usage of private framework may cause rejection of app submission. You can use class-dump to get method signatures but you can not get any constants or C functions.