GithubHelp home page GithubHelp logo

itsadok / open-knesset Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ofri/open-knesset

1.0 1.0 0.0 15.52 MB

A project aimed at making the israeli Knesset more transparent. Python and Django based

Home Page: http://oknesset.org/

License: BSD 3-Clause "New" or "Revised" License

JavaScript 21.03% Python 78.97%

open-knesset's Introduction

Installation:

For Ubuntu, make sure the following packages are installed:

sudo apt-get install python python-imaging python-setuptools
  • python bootstrap.py

  • bin/buildout

  • bin/test

  • bin/django syncdb --migrate # do not create a superuser account

  • bin/django loaddata dev

  • bin/django createsuperuser # to create your superuser account

  • bin/django runserver

  • vi src/knesset/local_settings.py # create your local setting file to store a bunch of things that you do NOT want to push to everyone # NOTE: NEVER push settings.py with local changes!

  • sample input for local_settings.py: DATABASE_NAME = '<your-local-path>dev.db' # Or path to database file if using sqlite3.

Trouble?

  • Some of the mirrors are flaky so you might need to run the buildout several times until all downloads succeed.
  • currently using MySQL as the database engine is not supported
  • on bin/buildout, problems with getting distribution for 'PIL' can be fixed by installing the python-dev package

Update - get your branch updated with the changes done by others

  • cd Open-Knesset
  • git pull git://github.com/hasadna/Open-Knesset.git master
  • bin/buildout # only needed if the file buildout.cfg was changed; but can't hurt you if you run it every time.
  • bin/django syncdb --migrate # do not create a superuser account
  • bin/test
  • bin/django runserver

if you get the add_persons_aliases alert try bin/django migrate --fake persons 0001

Updating the translation strings:

  • cd src/knesset
  • ../../bin/django makemessages -a -e txt,html <edit src/knesset/locale/he/LC_MESSAGES/django.po, find your strings and change it to the correct translation>
  • ../../bin/django compilemessages

Windows Users:

Prerequisites:

Running the installation instructions:

  • open command line change dir to the Open-Knesset folder
  • run the installation instructions above (Without the $ ofcourse and with backslashes)

Checking in

see http://linux.yyz.us/git-howto.html for a short list of options with git

First time

Every other time

  • git diff # to know what changed since your last commit
  • git add -filename # if you added new files (commit doesn't add new files)
  • git commit -a # commit all changes to your local repository
  • commit note should include fix#: [number] of the redline bug number youre fixing (if any)
  • git push # push changes to git repo
  • go to git, do a "pull request" from [release manager] so code will get to production

Updating Text

Adding a field to existing model

  • add the field you want to model sample_model
  • see our naming conventions for migrations: under the directory "migrations" under the model's folder - notice the number is added automatically
  • so 0003_add_members_blog is actually add_members_blog
  • bin/django schemamigration knesset.sample_model --auto naming_convention_change_name
  • bin/django syncdb --migrate

open-knesset's People

Contributors

akariv avatar amitzur avatar bjesus avatar borisd avatar daonb avatar david206 avatar ethan1701 avatar igkh avatar itsadok avatar liorsion avatar livni avatar lorg avatar meirkriheli avatar mushon avatar ofri avatar omergertel avatar privman avatar refack avatar rmerom avatar salty-horse avatar shmichael avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.