The Common Funding Application is an online application that allows student groups and organizations to request funding from various funding sources at the University of Pennsylvania.
-
Install pip
-
Install python dependencies (
sudo pip install -r requirements.txt
) -
Install node.js
-
Install CoffeeScript (
sudo npm install -g coffee-script
) -
Compile the CoffeeScript files (
coffee -o app/static/js/ -c app/static/coffeescripts/
orcake build
if you are in the app/static directory) -
Create a configuration file (
cp sandbox_config.py_default sandbox_config.py
) -
Fill in missing fields in sandbox_config.py
-
Create database (
python manage.py syncdb
) -
Import dummy data (
python import_demo.py
) -
Run the server (
python manage.py runserver
) -
Navigate to the app
-
Navigate to app/static
-
Run tests (
cake test
)
Note: instructions are from our wiki
-
Edit models.py
-
first migration only
python manage.py convert_to_south app
-
python manage.py schemamigration app --auto NAME_OF_CHANGE
-
python manage.py migrate app
- The development team at Penn Labs