LogdeIt, a Pastebin service
Go to file
David Pursehouse c6f8b735fb Use SQLAlchemy version 0.9.7
Version 0.6 is not available on pypi.python.org

Change-Id: I3bb4793b48598a6bcfd506451a559676cbe9d44c
2015-04-20 13:56:57 +09:00
clientlib [svn] added license informations to lodgeit pastebin and finished open sourceing the package 2006-12-15 22:37:06 +01:00
lodgeit Remove the all pastes listing. 2012-11-23 10:13:17 -08:00
scripts Use SQLAlchemy version 0.9.7 2015-04-20 13:56:57 +09:00
tests add more tests and some comments 2011-04-04 09:37:11 -07:00
.gitreview Updated .gitreview location 2012-12-16 10:41:25 -08:00
.hgignore add rss feeds for public pastes 2011-07-13 22:28:22 -07:00
babel.ini Added javascript support in babel 2008-09-14 13:44:48 +02:00
lodgeit.wsgi added lodgeit.wsgi file 2008-06-23 12:49:53 +02:00
Makefile added missing files 2008-07-08 11:20:20 +02:00
manage.py Minimal fixes and cleanup. 2010-07-16 23:13:44 +02:00
README installation instructions 2009-12-21 11:06:46 +01:00
TODO Fix misspellings in lodgeit 2014-02-08 10:39:12 +08:00

==============
LodgeIt Readme
==============

Lodgeit implements a pastebin and some scripts to paste the service.


Installation
~~~~~~~~~~~~

LodgeIt requires at least Python 2.5 to work correctly. Next to this LodgeIt has
quite a few of dependencies as well as a nice bootstrap process. This is documentated
on the following slides.

Dependencies and virtual environment
====================================

To get LodgeIt work properly we need those dependencies: Python (at least 2.5),
python-setuptools and mercurial.

For Ubuntu (or any Debian based distribution) use ``aptitude`` to install::

    aptitude install python-dev python-setuptools python-virtualenv mercurial

Now we can install LodgeIt. But first we need to check out LodgeIt from the
mercurial repository. To do that you create a new folder ``lodgeit-dev`` in your
projects directory and change into it. There we initialize the virtual
environment and check out LodgeIt (main branch)::

	hg clone http://dev.pocoo.org/hg/lodgeit-main lodgeit

Right before we can initialize the virtual environment we need to install some
development packages to compile the python imaging library.

For Ubuntu again ``aptitude`` (as root)::

    sudo aptitude install build-essential
    apt-get build-dep python-imaging

Now it's possible to install the virtual environment. This is done with a simple
Python command::

    # assumed that you are located in lodgeit-dev/lodgeit
    python scripts/make-bootstrap.py > ../bootstrap.py
    cd ..
    # make sure that the virtualenv is not activated. If yes, execute `deactivate`
    python bootstrap.py .

You are ready to run now.

Database and other things
=========================

We are now ready to enter the virtual environment (assumed you are located in
``lodgeit-dev/lodgeit``)::

    . ../bin/activate

LodgeIt initializes it's database per default on /tmp/lodgeit.db, you can change
that path in the manage.py by modifiing ``dburi``.

Now start the development server::

    python manage runserver

Enjoy!