Showing posts with label django. Show all posts
Showing posts with label django. Show all posts

2015-05-03

Unable to find vcvarsall.bat

When run python modules with mysql settings,

need to install MySQLdb but raise error like below..

Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)

You can download Microsoft Visual C++ 10.0 express for free but,

it is very tiresome.

Here is a solution : http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python

After download proper module, enter : pip install module-name.whl 

Done!

Django uwsgi troubleshooting

http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

Following this step ( with ini ), but raise an error:

--- no python application found, check your startup logs for errors ---
...

Then, try this in root dir of django project :
uwsgi --socket socketname.sock --module projectname.wsgi --chmod-socket=666

If it resolved, your ini file to run uwsgi could be have an error with path.

chdir should be django root (contain manage.py).

module should be projectname.wsgi

I have too many things to think about above thing because it doesn't print errors. But the point at issue was simple.