comparison gpp/gcalendar/admin.py @ 574:ddd69a8e07c7

For Django 1.4, use django.conf.urls instead of django.conf.urls.defaults.
author Brian Neal <bgneal@gmail.com>
date Thu, 03 May 2012 20:45:16 -0500
parents 9a4bffdf37c3
children
comparison
equal deleted inserted replaced
573:bcc4e8cf841b 574:ddd69a8e07c7
1 """ 1 """
2 This file contains the automatic admin site definitions for the gcalendar application. 2 This file contains the automatic admin site definitions for the gcalendar application.
3 3
4 """ 4 """
5 import datetime
6
7 from django.conf import settings 5 from django.conf import settings
8 from django.conf.urls.defaults import * 6 from django.conf.urls import patterns, url
9 from django.contrib import admin 7 from django.contrib import admin
10 from django.contrib import messages 8 from django.contrib import messages
11 from django.contrib.sites.models import Site 9 from django.contrib.sites.models import Site
12 from django.core.urlresolvers import reverse 10 from django.core.urlresolvers import reverse
13 from django.http import HttpResponse
14 from django.http import HttpResponseRedirect 11 from django.http import HttpResponseRedirect
15 from django.shortcuts import render 12 from django.shortcuts import render
16 from django.template import RequestContext
17 13
18 import gdata.client 14 import gdata.client
19 15
20 from gcalendar.models import Event, AccessToken 16 from gcalendar.models import Event, AccessToken
21 from gcalendar.calendar import Calendar, CalendarError 17 from gcalendar.calendar import Calendar, CalendarError