IQSS / data-related-to-me-test

proof of concept scratch repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

data-related-to-me-test

Proof of concept scratch for data related to me feature.

To Run

Local Install (on OS X)

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

Install virtualenvwrapper

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

Setup on the local machine

cd into the basic-python-example repository

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

Step 1 (from google doc)

About

proof of concept scratch repo


Languages

Language:Python 73.5%Language:HTML 26.5%