1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
For Postgresql:
- sudo apt-get install postgresql python-psycopg2
# not sure if necessary
# - sudo passwd postgres
# # change password to 'password' or whatever the password is in summit/settings.py
# - sudo -u postgres psql template1
# ALTER USER postgres WITH ENCRYPTED PASSWORD 'password';
- sudo -u postgres createdb -O postgres summit
Generate a SECRET_KEY
>>> import string
>>> from random import choice
>>> print ''.join([choice(string.letters + string.digits + string.punctuation) for i in range(50)])
To develop summit, you should also have code linting, coverage, and testrunner tools installed:
- sudo apt-get install python-setuptools python-coverage python-django-nose python-freshen python-pip
- sudo pip install flake8
For Development:
Install necessary javascript and iso packages
sudo make depends
Setup virtualenv, common apps and initialize database
make init
Run Summit unit tests, you should make sure all tests pass
make test
Run Summit through the Django server to view your local instance
make run
|