brosner / oebfare

my personal blog written with django

This URL has Read+Write access

Brian Rosner (author)
Fri Apr 03 18:57:06 -0700 2009
commit  6fe1b33c4149f431c159635a7560b1c63040a841
tree    fe410a9b7b8a6c00db238711db7a0dd810846295
parent  8ff6a7e07a0fc5a8e806a86a73b98a0e2d9ff65b
name age message
file .gitignore Wed Mar 04 15:57:38 -0800 2009 ignore any .db files Signed-off-by: Brian Rosn... [leah]
file README Tue Mar 10 09:43:59 -0700 2009 Cleaned up the README and provided more direction. [Brian Rosner]
file TODO Sat Nov 01 15:56:38 -0700 2008 Added a TODO file. [Brian Rosner]
file __init__.py Wed Dec 12 12:55:58 -0800 2007 initial commit. [Brian Rosner]
directory apps/ Fri Apr 03 18:57:06 -0700 2009 Fixed a stupid boolean logic issue that has cau... [Brian Rosner]
directory cron/ Wed Dec 10 17:53:40 -0800 2008 Oops, wrong home directory. [Brian Rosner]
directory deploy/ Fri Mar 13 20:16:38 -0700 2009 Total fail night. [Brian Rosner]
file manage.py Mon Feb 16 13:16:20 -0800 2009 Removed the Pinax sys.path hacking that is now ... [Brian Rosner]
file requirements.txt Fri Apr 03 18:39:16 -0700 2009 Moved django-mailer and django-gravatar to the ... [Brian Rosner]
file settings.py Wed Mar 11 11:51:35 -0700 2009 moved templates and static content to a themes ... [leah]
directory sql/ Fri Mar 13 20:33:47 -0700 2009 Added a quick migration file for the recent mar... [Brian Rosner]
directory themes/ Fri Apr 03 18:49:56 -0700 2009 Allow comments to be turned off. [Brian Rosner]
file urls.py Mon Nov 03 10:55:07 -0800 2008 Made the code changes for apps to live on the P... [Brian Rosner]
file views.py Fri Jun 20 09:31:07 -0700 2008 Ugh, missing Context class in views.py. [brosner]
README
oebfare is the source code that runs the blog at http://oebfare.com. The code
is freely available for you to use however you want.

License
-------

This source code is licensed under the BSD license.

Dependancies
------------

 * Django 1.0.1+
 * docutils
 * pygments
 * django-comment-utils (http://github.com/jezdez/django-comment-utils/tree/master)
 * django-tagging
 * django-mailer
 * django-gravatar

Checking out the source
-----------------------

The source code for oebfare is hosted on GitHub. To clone the code run::

    git clone git://github.com/brosner/oebfare.git

There is a mirror of the source code available at oebfare itself:

    git clone git://oebfare.com/oebfare.git

You're all set!

Installing
----------

To get yourself up and running with oebfare you have two options. Install the
dependancies (listed above) manually or grab pip. The preferred way of setting
things up is to work with pip and virtualenv. For the former, you are on your
own. If you don't have pip or virtualenv here is a quick setup guide::

    sudo easy_install pip
    sudo pip install virtualenv

You don't have to use ``sudo``, but I did to show you it really should be
installed globally. The last thing I *highly* recommend is using Doug Hellman's
virtualenvwrapper::

    sudo pip install virtualenvwrapper

Head to http://pypi.python.org/pypi/virtualenvwrapper/ and read the quick
setup to get virtualenvwrapper going for yourself. I will assume that is done
correctly.

Set up yourself a virtualenv for working with the oebfare code (you can use
any env name below)::

    mkvirtualenv oebfare
    easy_install pip

Now you are ready to install the dependancies using pip. Make sure you in the
root of the oebfare source tree::

    pip install -r requirements.txt

You are all set!

Configuration
-------------

All settings should be provided in a ``local_settings.py`` file. This file is
imported by ``settings.py`` to override any already defined settings. The only
disadvantage to this method is you don't have access to the original values
to append or modify in place (this shouldn't be a big deal). The most common
settings you should likely need to configure are:

 * ``LOCAL_DEVELOPMENT``
 * ``DEBUG``
 * ``DATABASE_ENGINE``
 * ``DATABASE_HOST``
 * ``DATABASE_NAME``
 * ``DATABASE_PASSWORD``
 * ``DATABASE_PORT``
 * ``DATABASE_USER``
 * ``EMAIL_HOST``
 * ``EMAIL_HOST_PASSWORD``
 * ``EMAIL_HOST_USER``
 * ``EMAIL_PORT``
 * ``EMAIL_SUBJECT_PREFIX``
 * ``EMAIL_USE_TLS``
 * ``MEDIA_ROOT``
 * ``MEDIA_URL``

This is by no means a complete list. The most important settings are going
to be the database settings. Make sure you set them correctly.

Notice the ``LOCAL_DEVELOPMENT`` settings. This setting is used to control
whether the media in ``MEDIA_ROOT`` is served up at ``MEDIA_URL`` by default
when running ``runserver``. This is handy for testing, but please do not use it
in production. The setting name should hopefully defer that.

Once you have your database settings configured go ahead and syncdb::

    python manage.py syncdb

And finally you can run the development server::

    python manage.py runserver

Point your browser at http://localhost:8000/. The blog is going to look
remarkably like the one at http://oebfare.com/. Welcome to the oebfare world!