Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

Commit

Permalink
Add iCalendar URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
daisylb committed Jul 10, 2012
1 parent 00c9fde commit 42fdd7f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.mdown
Expand Up @@ -4,6 +4,11 @@

This plugin gives you an "Event" page type for your Mezzanine sites, with automagic "Add to Google Calendar", "Add to Outlook" and "Get Directions" links.

## Installation

* Add `"mezzanine_events"` to your `INSTALLED_APPS`
* Add `("^", include("mezzanine_events.urls"))` to your `urls.py` (this is so that mezzanine-events can serve up iCalendar files).

## Usage

### Event Container pages
Expand Down
8 changes: 8 additions & 0 deletions mezzanine_events/urls.py
@@ -0,0 +1,8 @@

from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from . import views

urlpatterns = patterns("",
url("^(?P<slug>.*)/event.ics$", views.icalendar),
)

0 comments on commit 42fdd7f

Please sign in to comment.