GitXplorerGitXplorer
n

labber

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
697e5536e21bc4ce229225106ce526634a339dd2

working skeleton

nnottombrown committed 14 years ago
Unverified
e65018d6d8443af3d6348c51c8fe78444bb7f0e0

added everything

nnottombrown committed 14 years ago
Unverified
ec1c2e4fea9062fe65ee404e72e76e60e0091dbb

made it

nnottombrown committed 14 years ago

README

The README file for this repository.

This is a basic Django setup for Ubuntu and Apache 2. We are using python 2.5 and django 1.1

$ apt-get install python-setuptools Also South is useful for database migrations: $easy_install South The first time you do syncdb, comment out all the apps except for "south" The first time, initialize like this: $py manage.py schemamigration kiosks --initial Afterwards, use it like this: $py manage.py schemamigration kiosks --auto

Note that the database and the containing directory should be writable.

Install ElementTree from bicimap/crawler/ run $parsestation.py init Then set up a cron job to run $parsestation.py update every 10 minutes

your vhosts.conf should have this to work properly:

<VirtualHost 204.232.204.112> ServerName example.com ServerAlias www.example.com

         <Location "/">
             SetHandler python-program
             PythonHandler django.core.handlers.modpython
             SetEnv DJANGO_SETTINGS_MODULE bicimap.settings
             PythonDebug On
             PythonPath "['/home/tombrown/'] + ['/home/tombrown/bici/'] + sys.path"
          </Location>

          Alias /media/ /home/tombrown/bici/media/
          <Location "/media/">
              SetHandler None
          </Location>