Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.14 KB

README.rst

File metadata and controls

46 lines (28 loc) · 1.14 KB

Agenda de politicieni (contact list of politicians)

http://agenda.grep.ro/

Installation

  1. Clone the Git repository:

    git clone git://github.com/alex-morega/agenda-politicieni.git
    cd agenda-politicieni
    
  2. Create a Virtualenv, activate it:

    virtualenv sandbox
    echo '*' > sandbox/.gitignore
    . sandbox/bin/activate
    
  1. Install dependencies:

    pip install -r requirements-dev.txt
    
  2. Create an instance folder and configuration file:

    mkdir instance
    echo "SECRET_KEY = 'some_random_stuff'" > instance/settings.py
    
  3. Create the database structure using migrations:

    python migrations/manage.py version_control sqlite:///instance/agenda.db migrations
    python migrations/manage.py upgrade sqlite:///instance/agenda.db migrations
    
  4. Import some data:

    curl 'http://agenda.grep.ro/download?format=json' > instance/datadump.json
    python agenda.py shell
    
    >>> import database
    >>> database.import_json('instance/datadump.json')
    
  5. Run the development server:

    python agenda.py runserver