A Django app for adding EU Code Week events and showing them on a map.
Python CSS JavaScript HTML Shell TeX
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
api
certificates
codeweekeu
db
docker
geoip
mailer
patches
src
static
validators
web
.gitignore
.pep8
.travis.yml
Gemfile
LICENSE
README.md
manage.py
pytest.ini
requirements.txt
run-tests
server-requirements.txt

README.md

![Gitter](https://badges.gitter.im/Join Chat.svg)

Build Status

Coverage Status

events.codeweek.eu

This is an app that let's you add Code Week events and displays them on a map.

Contributing

Fork this repository, and clone it to your local machine (of course, use your own username instead of {username}):

git clone https://github.com/{username}/coding-events.git
cd coding-events

Install things in virtualenv.

Install requirements (first time):

pip install -r requirements.txt

On a Mac use Homebrew to install geoip:

brew install geoip

You'll also need saas, which is a ruby package that you need to have installed, so you can install it using:

gem install sass

It may also be necessary to add the sass binary to your PATH:

export PATH=$PATH:$HOME/.gem/ruby/2.2.0/bin

To collect the static files required for the rendering of the web pages:

./manage.py collectstatic
./manage.py compress --force

Create new user and environment:

./manage.py setupdb

Make your changes, push to your fork and create a new Pull Request.

Make sure all tests are passing before you push. There is a shorthand for running the tests locally:

./run-tests

On caching in development

You may need to turn off page caching in development by adding this in the codeweekeu/settings_local.py file:

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
    }
}

(Thanks!).

Production Install

See docker/_install.sh.

There is also an example crontab file in docker/crontab.example.

Bugs

Please open an issue.