data-related-to-me-test
Proof of concept scratch for data related to me feature.
- See related google doc
To Run
Local Install (on OS X)
This is a quick checklist to install virtualenv and virtualevnwrapper on an OS X machine.
pip
Install- use sudo if needed
- OS X:
pip install -U pip
- OS X:
virtualenvwrapper
Install- 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.
data-related-to-me-test repository
Pull down this repostitory- Use the mac client if desired or windows client
Setup on the local machine
basic-python-example
repository
cd into the cd ~\data-related-to-me-test
Install the virtualenv and the requirements
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
Set postactivate variable
- 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
Working with the project (post installation)
cd ~/data-related-to-me-test/mydata/mydata
workon mydata
python manage.py runserver
google doc)
Step 1 (from- Go to: http://127.0.0.1:8000/step1/db-roles/
dataverseAdmin
may be any username