Skip to content

Commit 1335221

Browse files
Improv/documentation fixes (#895)
* Bump up the minimum support Django version. * Update documentation to mention support for Django 1.11. Co-authored-by: Akhil <akhil@healthifyme.com>
1 parent aeb04d5 commit 1335221

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

docs/authorization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ To restrict users from accessing the GraphQL API page the standard Django LoginR
166166
167167
After this, you can use the new ``PrivateGraphQLView`` in the project's URL Configuration file ``url.py``:
168168

169-
For Django 1.9 and below:
169+
For Django 1.11:
170170

171171
.. code:: python
172172

docs/installation.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Requirements
88

99
Graphene-Django currently supports the following versions of Django:
1010

11-
* Django 2.X
11+
* >= Django 1.11
1212

1313
Installation
1414
------------
@@ -32,6 +32,20 @@ Add ``graphene_django`` to the ``INSTALLED_APPS`` in the ``settings.py`` file of
3232
3333
We need to add a ``graphql`` URL to the ``urls.py`` of your Django project:
3434

35+
For Django 1.11:
36+
37+
.. code:: python
38+
39+
from django.conf.urls import url
40+
from graphene_django.views import GraphQLView
41+
42+
urlpatterns = [
43+
# ...
44+
url(r"graphql", GraphQLView.as_view(graphiql=True)),
45+
]
46+
47+
For Django 2.0 and above:
48+
3549
.. code:: python
3650
3751
from django.urls import path

docs/tutorial-plain.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ from the command line.
286286
$ python ./manage.py runserver
287287
288288
Performing system checks...
289-
Django version 1.9, using settings 'cookbook.settings'
289+
Django version 1.11, using settings 'cookbook.settings'
290290
Starting development server at http://127.0.0.1:8000/
291291
Quit the server with CONTROL-C.
292292

docs/tutorial-relay.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ from the command line.
277277
$ python ./manage.py runserver
278278
279279
Performing system checks...
280-
Django version 1.9, using settings 'cookbook.settings'
280+
Django version 1.11, using settings 'cookbook.settings'
281281
Starting development server at http://127.0.0.1:8000/
282282
Quit the server with CONTROL-C.
283283

0 commit comments

Comments
 (0)