Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofMadejski committed Jul 24, 2019
1 parent cdd4fb8 commit fea2f4c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Adding migrations

To generate migrations:
```bash
export DJANGO_SETTINGS_MODULE=moonsheep.tests.migrations_settings
django-admin makemigrations moonsheep
```
2 changes: 1 addition & 1 deletion moonsheep/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from .mapper import klass_from_name
from .verifiers import MIN_CONFIDENCE, DEFAULT_DICT_VERIFIER
from .registry import register_task # pylint: disable=unused-import # For easier import in apps
from .registry import register_task # NOQA # pylint: disable=unused-import # For easier import in apps
from .settings import (
TASK_SOURCE, RANDOM_SOURCE
)
Expand Down
7 changes: 7 additions & 0 deletions moonsheep/tests/migrations_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from .test_settings import * #NOQA

INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'moonsheep'
]

0 comments on commit fea2f4c

Please sign in to comment.