SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 572ffa25 authored by Geert Kapteijns's avatar Geert Kapteijns
Browse files

Update README.md with example of shell_plus

parent fce0ae14
No related branches found
No related tags found
No related merge requests found
...@@ -190,3 +190,14 @@ class VetCommentaryRequestsTest(TestCase): ...@@ -190,3 +190,14 @@ class VetCommentaryRequestsTest(TestCase):
# Write your tests here # Write your tests here
``` ```
## Django-extensions
[django-extensions](https://github.com/django-extensions/django-extensions) provide added commands like
`./manage.py shell_plus`, which preloads all models in a shell session. Additional imports may be specified in `settings.py` as follows:
```python
SHELL_PLUS_POST_IMPORTS = (
('theses.factories', ('ThesisLinkFactory')),
('comments.factories', ('CommentFactory')),
)
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment