Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PyCon Finland website
Python JavaScript CSS
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
2010 Transform to a static website
2011 Remove livestreams, add news about coverage
2012 Remove conflict markers
2013 Conference was held
2014 add link to lusmu blog posts
api
media Add sponsors
.gitignore Added Bootstrap, first modal dialog
README.rst
requirements.txt Registration form for 2013

README.rst

Introduction

This is the source code for PyCon Finland website: http://fi.pycon.org/.

All source code is licensed under BSD license.

Running the site

  • Requirements:
    • Virtualenv
    • Django (1.3+)
    • South
    • 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:

git@github.com: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

In your .ssh/config add:

# 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:

ssh-copy-id pythonfi

Now you can enter the server:

ssh pythonfi

Restart and refresh the production server:

server-admin -a

Or, if you like interactivity, just

server-admin

Editing the pages

Example:

cd fi.python.org
python -m SimpleHTTPServer

Then

http://localhost:8000/2012/demo.html

Repos

The official source code repository is https://github.com/python-finland/fi.pycon.org/.

Github hooks

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

Contact

Regarding any questions please contact the board members of the Python Finland association, or the PIG-Fi mailing list.

Something went wrong with that request. Please try again.