1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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 run summit:
- sudo apt-get install python-django python-django-openid-auth python-django-south python-beautifulsoup python-psycopg2 python-openid python-tz python-simplejson
- cd summit
- cp local_settings.py.sample local_settings.py
# edit local_settings.py and set DATABASE_USER, DATABASE_PASSWORD, SECRET_KEY
- bzr branch lp:ubuntu-community-webthemes/light-django-theme ubuntu_website
- bzr branch lp:~salgado/ubuntu-community-webthemes/light-django-linaro-theme linaro_website
- ./manage.py syncdb
- ./manage.py migrate
- ./manage.py runserver
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
- sudo pip install flake8
|