The code that powers PyCon.ca -- PyCon Canada
JavaScript Python Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
pyconca
.gitignore
.hgignore
.travis.yml
CHANGES.txt
MANIFEST.in
Makefile
README.rst
development.ini
gunicorn_config.py
prod_dump_to_sqlite
production_example.ini
requirements.txt
reset
run
setup.cfg
setup.py

README.rst

pyconca Website

Build status

Getting Started

~$ virtualenv -p python2.7 env-pyconca
~$ source env-pyconca/bin/activate
(env-pyconca)~$ cd workspace/pyconca/
(env-pyconca)~/workspace/pyconca$ pip install -r requirements.txt
Cleaning up...
(env-pyconca)~/workspace/pyconca$ python setup.py develop
Finished processing dependencies for pyconca==0.0
(env-pyconca)~/workspace/pyconca$ ./reset
(env-pyconca)~/workspace/pyconca$ ./run
serving on http://0.0.0.0:6543

If you are more comfortable with Makefiles you can do the following

~$ virtualenv -p python2.7 env-pyconca
~$ source env-pyconca/bin/activate
(env-pyconca)~$ cd workspace/pyconca/
(env-pyconca)~/workspace/pyconca$ make setup
(env-pyconca)~/workspace/pyconca$ ./run
serving on http://0.0.0.0:6543

Updating the French/English Text

(env-pyconca)~/workspace/pyconca$ make localization_catalog
edit pyconca/locale/fr/LC_MESSAGES/pyconca.po
edit pyconca/locale/en/LC_MESSAGES/pyconca.po
(env-pyconca)~/workspace/pyconca$ make compile_catalog

Testing

If you are so inclined to help test here is a quick way to get started running the tests

(env-pyconca)~$ cd workspace/pyconca/
(env-pyconca)~/workspace/pyconca$ make test
test_index_logged_in_admin (pyconca.tests.test_talk_api.TestTalkApi) ... ok
test_index_logged_in_speaker (pyconca.tests.test_talk_api.TestTalkApi) ... ok
test_index_not_logged_in (pyconca.tests.test_talk_api.TestTalkApi) ... ok
test_index_logged_in_admin (pyconca.tests.test_index.TestIndexFunctional) ... ok
test_index_logged_in_speaker (pyconca.tests.test_index.TestIndexFunctional) ... ok
test_index_not_logged_in (pyconca.tests.test_index.TestIndexFunctional) ... ok

----------------------------------------------------------------------
Ran 6 tests in 0.080s