~bigkevmcd/django-bzrviews/trunk

« back to all changes in this revision

Viewing changes to bzrviews/views.py

  • Committer: Kevin McDermott
  • Date: 2017-07-13 18:53:27 UTC
  • mfrom: (3.1.5 django-bzrviews)
  • Revision ID: kevin@bigkevmcd.com-20170713185327-o4tgmw2idyk1thvk
Support Django 1.9 and later

Django's url patterns() was removed in Django 1.9. I've changed the urls.py file
to reflect that. This package now works with 1.6 and later.

I've run the test scripts, but added a tox.ini as well. Tox is helpful for
running tests in multiple venvs, so I've added it to be able to run tests in
virtualenvs set up per each Django version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2013 Canonical Ltd.
 
1
# Copyright (C) 2017 Canonical Ltd
 
2
#
 
3
# This program is free software: you can redistribute it and/or modify it under
 
4
# the terms of the GNU Lesser General Public License as published by the Free
 
5
# Software Foundation, either version 3 of the License, or (at your option) any
 
6
# later version.
 
7
#
 
8
# This program is distributed in the hope that it will be useful, but WITHOUT
 
9
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
10
# FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
 
11
# details.
 
12
#
 
13
# You should have received a copy of the GNU Lesser General Public License
 
14
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
from django.conf.urls import url
2
16
from django.http import HttpResponse
3
17
 
4
18
from bzrviews.helpers import get_bzr_revision