Proof of concept scratch for data related to me feature.
- See related google doc
This is a quick checklist to install virtualenv and virtualevnwrapper on an OS X machine.
Install pip
- use sudo if needed
- OS X:
pip install -U pip
- OS X:
Install virtualenvwrapper
- depends on pip
- OS X:
sudo pip install virtualenvwrapper
- OS X:
- remember to set the (shell startup file)[http://virtualenvwrapper.readthedocs.org/en/latest/install.html#shell-startup-file]
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
source /usr/local/bin/virtualenvwrapper.sh
or, on windows, this might be helpful.
Pull down this repostitory data-related-to-me-test repository
- Use the mac client if desired or windows client
cd ~\data-related-to-me-test
This may take a minute or two. On Mac: Xcode needs to be installed.
mkvirtualenv mydata
pip install -r requirements/base.txt
If you run into Xcode (or other errors) when running the install, google it. Sometimes the Xcode license agreement hasn't been accepted
- Open the postactivate script (in any editor--example below is
vim)
vim $VIRTUAL_ENV/bin/postactivate
- Add these lines to the bottom, save file, and return to the Terminal
export DJANGO_DEBUG=True
export DJANGO_SETTINGS_MODULE=mydata.settings.local
- Test it:
deactivate
workon mydata
echo $DJANGO_SETTINGS_MODULE
You should have seen: mydata.settings.local
cd ~/data-related-to-me-test/mydata/mydata
workon mydata
python manage.py runserver
Step 1 (from google doc)
- Go to: http://127.0.0.1:8000/step1/db-roles/
dataverseAdminmay be any username