Use peewee as model and rewrite the code

This commit is contained in:
Arne Schlüter 2014-12-10 23:56:15 +01:00
commit c1ac5e5ed4
5 changed files with 49 additions and 53 deletions

View file

@ -2,3 +2,10 @@
A visualization of hate crime in Berlin, starting 2005.
The data is kindly provided by [ReachOut - Opferberatung und Bildung gegen Rechtsextremismus, Rassismus und Antisemitismus](http://www.reachoutberlin.de).
It is scraped regularly from their webpage and visualized and analyzed by software written by [Joshua Widmann](https://github.com/jshwdmnn) and [Arne Schlüter](https://github.com/aesthaddicts).
## How do I start?
In order to set up the tables you have to create them first. This is done quite easily using the `python` interpreter:
```python
from models import *
create_tables()
```