Convert another print call to print_msg.
[bloggy.git] / README
blob10529e96690c7ee797858c5605d1a91e44315976
1 Requirements
2 ------------
4 The only requirements are the Python interpreter and the sqlite3 module.
5 Oh, and a web server, obviously. These instructions will cover the
6 Apache web server as that's the most popular and also the biggest pain
7 in the arse to configure.
9 Installation
10 ------------
12 Extract Bloggy to a directory that is visible to your web server, e.g.
13 the public_html directory in your home directory.
15 Configuration
16 -------------
18 Configuration directives are located in config.py in the directory you
19 placed Bloggy.
21 The directory the database is to be created in needs to be writable by
22 the web server.
24 If you don't want everyone to be able to post to your blog you'll need
25 to secure post.cgi somehow. This will vary depending on the web server
26 you're using and your needs. Use your brain.
28 If you're using Apache, one possible solution is to place the following
29 in a file called .htaccess in the same directory as post.cgi:
31 <Files post.cgi>
32     AuthType Basic
33     AuthName "Password Required"
34     AuthUserFile /path/to/.htpasswd
35     Require valid-user
36 </Files>
38 You'll obviously need to create a .htpasswd file containing your
39 authentication credentials. This can be done using the htpasswd command.