Upcoming events list application for Django.
Python HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
events
tests
.gitignore
.travis.yml
LICENSE.txt
MANIFEST
README.rst
manifest.in
runtests.py
setup.py
tox.ini

README.rst

Django Events

A simple upcoming events calendar for Django.

https://travis-ci.org/jbergantine/django-events.svg?branch=develop

View builds on TravisCI.

Installation from Source

$ git clone git://github.com/jbergantine/django-events.git
$ cd django-events
$ python setup.py install

Installation via PIP Requirements File

Include in the PIP requirements file the following lines:

-e git://github.com/jbergantine/django-events.git#egg=events

And then install as normal (IE:)

$ pip install -r path/to/requirements/file.txt

Testing

$ python setup.py test

With TOX

First, install Tox, then run the tests. This will test against the Django versions specified in the environments specified in the tox.ini file

$ pip install tox
$ tox

Setup the Project For the Application

Add to the INSTALLED_APPS tuple in the project's settings file:

'sorl.thumbnail',
'events',

In the project's urls.py file add:

url(r'^events/', include('events.urls')),

A list of upcoming events can now be linked to:

<a href="{% url 'events' %}">Events</a>

The RSS feed of upcoming events can now be referred to in the <head> of your HTML templates:

<link rel="feed alternate" type="application/rss+xml" title="Events" href="{% url 'events_feed' %}" />

Configure the Templates

By default the templates contain only the bare necessities. To override the default templates, create a directory called events in your templates directory and copy the templates from the project into that directory in order to make adjustments to them. If you're using VirtualEnv, cd to the root of the Django project and execute the following command:

cp -r $VIRTUAL_ENV/src/django-events/events/templates/events templates/events