[Answer]-Trouble getting mod_wsgi.so working with django

1đź‘Ť

âś…

I can’t quite understand what your problem is. You say you can’t “get past” the point where the author recommends you copy your testProject folder. What happens?

However, I must say that this is a very very bad tutorial. Taking that copy step for example, not only is that “not mandatory”, it is very strongly recommended against. There is no good reason to have your project code under the web root, and plenty of reasons not to: it is a potential security risk, given that a misconfiguration could easily expose your code files to the web, including your settings.py containing things like your db passwords.

There is however an even more serious problem with this tutorial. It is not a good idea to try and get things set up with mod_wsgi for development purposes, and even less when you’re just starting out. Django includes a development server (manage.py runserver) for exactly this reason, and it is a much better idea to use that for development, and postpone learning about Apache/mod_wsgi until you are ready for deployment.

Leave a comment