Step 15: Upload Our Site
Now, we are going to do a simple bit of ftp. Start in the 'guts' directory. ftp into your site, and, using the keyword 'put' put the .bashrc file up.
cd into 'public_html' and put .htaccess and zing.fcgi into that directory.
From 'public_html' directory, type 'cd ../media/css' to get into our css directory and 'put style.css'
The last file in guts we need to worry about for now is the 'base.html' file. If you are still in the 'css' directory on your server, type 'cd ../../dj/project/zing/template/' to get to the template directory, and put the base.html file there.
Wait first with the settings, we first have some database stuff to take care of.
Now, we want to put the stuff up in our main django project, so, from 'guts' we need to type 'lcd ../zing' to get to zing. We need to be in the same directory on the server, so 'cd ../' (out of 'template') to get there. The only thing we need to bother with here is the 'urls.py' file, so 'put urls.py'.
One thing to note here is that we are not going to use the 'zing.db' for the database, it will be a MySQL, and well get to that soon.
cd into the 'blog' directory (and lcd the same to get there on your home computer). Here you can let rip, and rather than ftp one thing at a time, type 'mftp *.py'. Specify the file ending so that it doesn't put up the pyc files and things like that. It will ask you if you want to put up the file, and to say yes you can just hit enter. If there was a file you didn't want to put up (for example, we don't need to put up the __init__.py file) then just an 'n' and enter will suffice. The '*' is a wildcard, of course - 'do it all'.
Now 'cd ../template/blog' and 'lcd ../template/blog' and 'mftp *.html'
Exit ssh.