![Gitter](https://badges.gitter.im/Join Chat.svg)
This is an app that let's you add Code Week events and displays them on a map.
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
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!).
See docker/_install.sh.
There is also an example crontab file in docker/crontab.example.
Please open an issue.