Skip to content

Commit

Permalink
set a limit on Django versions
Browse files Browse the repository at this point in the history
  • Loading branch information
michiya committed Jan 16, 2014
1 parent b63699b commit e22eb25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ Features
Dependencies
------------

- Django 1.2 or newer
- Django 1.2/1.3/1.4/1.5
- pyodbc 2.1 or newer

Installation
------------

1. Install pyodbc
1. Install pyodbc and Django

2. Install django-pyodbc-azure ::

pip install django-pyodbc-azure
pip install "django-pyodbc-azure<1.1"

3. Now you can point the ``ENGINE`` setting in the settings file used by
your Django application or project to the ``'sql_server.pyodbc'``
Expand Down
2 changes: 1 addition & 1 deletion sql_server/pyodbc/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from django.db.backends.signals import connection_created
from django.conf import settings
from django import VERSION as DjangoVersion
if DjangoVersion[:2] >= (1,5):
if DjangoVersion[:2] == (1,5):
_DJANGO_VERSION = 15
elif DjangoVersion[:2] == (1,4):
_DJANGO_VERSION = 14
Expand Down

0 comments on commit e22eb25

Please sign in to comment.