Commits

Mikhail Korobov  committed 632a1b1

cleanup

  • Participants
  • Parent commits df9d4a5

Comments (0)

Files changed (2)

File easy_maps/admin.py

 from django.contrib import admin
 from django import forms
 
-from .models import Address
 from .widgets import AddressWithMapWidget
 
 class AddressAdmin(admin.ModelAdmin):

File easy_maps_tests/urls.py

-from django.conf.urls.defaults import *
-from django.views.generic.simple import direct_to_template
+from django.conf.urls import patterns, url, include
 from django.contrib import admin
+from django.shortcuts import render_to_response
+
 
 admin.autodiscover()
 
+def index(request):
+    return render_to_response('index.html')
+
+
 urlpatterns = patterns('',
-    url(r'^$', direct_to_template, {'template': 'index.html'}, 'index'),
-    (r'^admin/', include(admin.site.urls)),
+    url(r'^$', index, name='index'),
+    url(r'^admin/', include(admin.site.urls)),
 )