Skip to content

Eliminate warnings

Matjaz Gregoric requested to merge mtyaka/eliminate-warnings into master

Removes the following warnings:

djangular_tags deprecation (make test_unit or make rundev)

/home/vagrant/.virtualenvs/opencraft/lib/python3.5/site-packages/djng/templatetags/djangular_tags.py:4: UserWarning: Templatetags `djangular_tags` have been renamed to `djng_tags`.
  "Templatetags `djangular_tags` have been renamed to `djng_tags`."

MySQL auth warnings (make test_unit):

/home/vagrant/opencraft/instance/models/mixins/database.py:68: Warning: Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement.
  (self.mysql_user, self.mysql_pass))

mysql: [Warning] Using a password on the command line interface can be insecure.
.mysql: [Warning] Using a password on the command line interface can be insecure.
..mysql: [Warning] Using a password on the command line interface can be insecure.

OptionParser -> ArgumentParser warning (make rundev)

09:58:17 worker.1    | /home/vagrant/.virtualenvs/opencraft/lib/python3.5/site-packages/django/core/management/__init__.py:345: RemovedInDjango110Warning: OptionParser usage for Django management commands is deprecated, use ArgumentParser instead
09:58:17 worker.1    |   self.fetch_command(subcommand).run_from_argv(self.argv)

NoArgsCommand -> BaseCommand (make shell)

/home/vagrant/.virtualenvs/opencraft/lib/python3.5/site-packages/django/core/management/base.py:577: RemovedInDjango110Warning: NoArgsCommand class is deprecated and will be removed in Django 1.10. Use BaseCommand instead, which takes no arguments by default.
  RemovedInDjango110Warning

Merge request reports