23👍
✅
Adding the following to the .pylintrc
file did it.
[MASTER]
# Add <file or directory> to the black list. It should be a base name, not a
# path. You may set this option multiple times.
ignore=tests.py, urls.py, migrations
- How to display month name by number?
- Django – OperationalError: (2006, 'MySQL server has gone away')
2👍
The anser here didn’t work for me, the ignore list doesn’t work on directories.
I had to add
ignore-paths=.*/migrations
- Duplicate elements in Django Paginate after `order_by` call
- Django render_to_string() ignores {% csrf_token %}
- Can't git-push to heroku due to "Build stream timed out"
1👍
In recent pylint versions, disable-msg-cat has been unified with other disable-* options
as a single ‘disable’ option. Since then,
# pylint: disable=I,E,R,F,C
may be added on top of files where you don’t want any messages issued.
- Django error: [<class 'decimal.InvalidOperation'>]
- Docker crontab: not found
- Django clean method throwing KeyError on POST
- Email verification in Django
- Django.db.models.loading.get_model vs. importing
Source:stackexchange.com