Repo for DPSI Team eyeData. This project includes a set of tools for searching and exploring survey data on Dataverse.
This is a quick checklist to install eyeData on an OS X or Windows 8.1 machine. Currently, it installs the twoscoops project template for Django 1.6, including creating a sqlite database and running a skeleton site.
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
source /usr/local/bin/virtualenvwrapper.sh
or, on windows, this might be helpful.
cd ~\eyeData
This may take a minute or two. Xcode needs to be installed.
mkvirtualenv eyedata
pip install -r requirements/local.txt
If you run into Xcode (or other errors) when running the install, google it. Sometimes the Xcode license agreement hasn't been accepted
vim $VIRTUAL_ENV/bin/postactivate
On windows:
vim %VIRTUAL_ENV%\Scripts\activate.bat
'vim' may be any text editor
export DJANGO_DEBUG=True
export DJANGO_SETTINGS_MODULE=eyedata.settings.local
On windows:
set "DJANGO_DEBUG=True"
set "DJANGO_SETTINGS_MODULE=eyedata.setings.local"
deactivate
workon eyedata
echo $DJANGO_SETTINGS_MODULE
On Windows, use:
echo %DJANGO_SETTINGS_MODULE%
You should see eyedata.settings.local
cd eyedata
python manage.py syncdb
python manage.py runserver
Location ~\eyeData\eyedata\templates
base.html
is the over-arching template
cd ~\eyeData\eyedata
workon eyedata
python manage.py runserver
This git repository contains a Vagrant environment that is used to mimic the Linux server that hosts the application in production. If you have Vagrant and VirtualBox installed you should be able to run vagrant up
see the running eyeData app at http://localhost:8000 (but you'll need to set "DEBUG = True" in eyedata/eyedata/settings/production.py).