Skip to content

A simple training app for Daily Bruin trainees, using campaign contribution data from the 2012 L.A. Mayoral race.

Notifications You must be signed in to change notification settings

yaodaniel/bruin-training-2014

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bruin-training

A simple training app for Daily Bruin trainees, using campaign contribution data from the 2012 L.A. Mayoral race.

Initial setup:

Set up a sandbox for your codebase using virtualenv.

$ virtualenv --no-site-packages training

Activate the virtualenv.

$ cd training
$ . bin/activate

Clone down the training repo.

$ git clone [email protected]:YOUR_NAME_HERE/bruin-training-fall-2013.git repo

Enter the project and install its dependencies.

$ cd repo
$ pip install -r requirements.txt

Installing SQLite

Install SQLite

$ sudo apt-get install sqlite3

Then set up the test database

$ touch contribs.db

Starting up the Django project

Sync the database, and run our script to load in the data.

$ python manage.py syncdb

When Django askes you to create a superuser, go ahead and do so. Next, we’ll run a custom management command to clean up and load our data.

$ python manage.py load_data

Turn on the test server, and see what you have!

$ python manage.py runserver

Go to http://localhost:8000/

About

A simple training app for Daily Bruin trainees, using campaign contribution data from the 2012 L.A. Mayoral race.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.7%
  • Python 6.3%