|
Perhaps they're too basic, but I've been rtfming all over the place, and maybe I'm retarded but I have some questions that don't seem to be very clearly answered.
I think I have this virtual named server stuff down, when I want to serve my static web urls it's pretty easy, I edit my whatever.com url in sites-available and point to my dir that is hosting these .coms I have up right now. my path is something like /blahblah/whatever.com/public_html/ and I just stick my index files etc into public_html. I've read that when creating django apps it's a bad idea to put your .py files in public_html since that makes them downloadable (obviously not a good idea). I know stuff has to be split up, but I'm not completely clear with how.
so let's say that I have a whatever.com domain that I want to use to host a django app, how should I split up my files? my guess would be to have templates and static files directly in /blahblah/www/whatever.com/public_html and have my django .py files hosted elsewhere, say /django/projects/whatever-project I know that I then need to go into my whatever.com file in /etc/apache2/sites-available and edit it to point apache to my .wsgi file and static files. What I'm not clear on is where I should put my .wsgi file. Does it need to hang out with /django/projects/whatever-project or does it need to be in /blahblah/www/whatever.com/ or /blahblah/www/whatever.com/public_html ?
The thing is, I can get these django projects working just fine with my local runserver, but I'm not terribly clear what the best way to implement them in my linode server is.
Any insights would be greatly appreciated. Thanks in advance!
|