-
install pip and virtualenv
- sudo apt-get install python-pip
- sudo apt-get install python-setuptools (if you don't already have easy_install)
- sudo easy_install virtualenv
-
install and configure virtualenvwrapper: $ sudo pip install virtualenvwrapper $ echo 'export WORKON_HOME="path/to/virtualenvs"' >> ~/.bashrc $ echo "source /usr/local/bin/virtualenvwrapper_bashrc" >> ~/.bashrc
-
create a new virtual env for datacommons. this will also activate it: $ mkvirtualenv datacommons note that the 'datacommons' dir can already exist or not. this command will create bin/ include/ and lib/ directories inside the datacommons directory.
-
if you need activate the datacommons virtualenv later, use: $ workon datacommons
-
install dependencies in requirements.txt files for dc_web and dc_matchbox $ pip install -r requirements.txt
-
add dc_data, dc_matcchbox, dc_web to the virtual env python path $ add2virtualenv [dir]
-
create local_settings.py files for both dc_web and dc_matchbox apps (get a copy from someone else).
-
manage.py runserver
forked from sunlightlabs/datacommons
-
Notifications
You must be signed in to change notification settings - Fork 0
The core of sunlightlabs' Data Commons project. Includes the Transparency Data site and the APIs that power TransparencyData.com and InfluenceExplorer.com
License
PinkDiamond1/datacommons
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
The core of sunlightlabs' Data Commons project. Includes the Transparency Data site and the APIs that power TransparencyData.com and InfluenceExplorer.com
Resources
License
Code of conduct
Security policy
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 89.9%
- PLpgSQL 6.9%
- PLSQL 1.7%
- Shell 0.8%
- Perl 0.3%
- HTML 0.3%
- CSS 0.1%