Skip to content

Commit 2264c3d

Browse files
committed
Merge pull request #2 from syrusakbary/feature/django
Improved integration with Django
2 parents ffc6707 + 70a4bd1 commit 2264c3d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+136
-349
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ matrix:
8080
fast_finish: true
8181
include:
8282
- python: '2.7'
83-
env: DJANGO_VERSION=1.6
83+
env: TEST_TYPE=build DJANGO_VERSION=1.6
8484
- python: '2.7'
85-
env: DJANGO_VERSION=1.7
85+
env: TEST_TYPE=build DJANGO_VERSION=1.7
8686
- python: '2.7'
87-
env: DJANGO_VERSION=1.8
87+
env: TEST_TYPE=build DJANGO_VERSION=1.8
8888
- python: '2.7'
89-
env: DJANGO_VERSION=1.9
89+
env: TEST_TYPE=build DJANGO_VERSION=1.9
9090
- python: '2.7'
9191
env: TEST_TYPE=build_website
9292
- python: '2.7'

bin/autolinter

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
# Install the required scripts with
4+
# pip install autoflake autopep8 isort
35
autoflake ./examples/ ./graphene/ -r --remove-unused-variables --remove-all-unused-imports --in-place
46
autopep8 ./examples/ ./graphene/ -r --in-place --experimental --aggressive --max-line-length 120
57
isort -rc ./examples/ ./graphene/
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from django.contrib import admin
22

3-
from cookbook.ingredients.models import Ingredient, Category
3+
from cookbook.ingredients.models import Category, Ingredient
44

55
admin.site.register(Ingredient)
66
admin.site.register(Category)

examples/cookbook/cookbook/ingredients/migrations/0001_initial.py renamed to examples/cookbook_django/cookbook/ingredients/migrations/0001_initial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Generated by Django 1.9 on 2015-12-04 18:15
33
from __future__ import unicode_literals
44

5-
from django.db import migrations, models
65
import django.db.models.deletion
6+
from django.db import migrations, models
77

88

99
class Migration(migrations.Migration):

0 commit comments

Comments
 (0)