This is the source code for PyCon Finland website: http://fi.pycon.org/.
All source code is licensed under BSD license.
Running the site
- Django (1.3+)
- 1 "secret" file located outside the root folder, name it "secret", so for example you have the root folder of the project is /home/yourhome/dev/pycon/, the secret file should be /home/yourhome/dev/secret
- 1 sqlite3 file located outside the root folder, name it "db2012.sqlite3"
- How to:
- Frontend of the site is located in /<year> folder (like 2011 or 2012), they are just pure HTML files
- Backend of the site is located in /api/pycon<year> folder. To run backend, go to /api folder and run: python manage.py runserver
Commands to duplicate the production site locally. First see how to add your SSH key below:
firstname.lastname@example.org:python-finland/fi.pycon.org.git cd fi.pycon.org curl -L -o virtualenv.py https://raw.github.com/pypa/virtualenv/master/virtualenv.py python virtualenv.py venv # Create virtualenv source venv/bin/activate pip install -r requirements.txt scp pythonfi:/srv/fi.pycon.org/db2012.sqlite3 . cd api touch ../../secret # Create secret file python manage.py runserver
The production server
# fi.pycon.org django server Host pythonfi ForwardAgent yes User pythonfi Hostname vps1207.zoner-asiakas.fi
Add your SSH key to the server using the organization password:
Now you can enter the server:
Restart and refresh the production server:
Or, if you like interactivity, just
Editing the pages
cd fi.python.org python -m SimpleHTTPServer
The official source code repository is https://github.com/python-finland/fi.pycon.org/.
CIA will post commit data to #python-hallitus @ IRCNet.
Get Github hook debug data:
curl -u "miohtama:xxxx" -in https://api.github.com/repos/python-finland/fi.pycon.org/hooks