#69 Stop importing flask modules in a deprecated way
Closed: Fixed 3 years ago Opened 4 years ago by frantisekz.

We are importing some flask modules in a way that is considered deprecated:

$ python3 runapp.py 
/home/fanys/blockerbugs/blockerbugs/__init__.py:3: ExtDeprecationWarning: Importing flask.ext.sqlalchemy is deprecated, use flask_sqlalchemy instead.
  from flask.ext.sqlalchemy import SQLAlchemy
/home/fanys/blockerbugs/blockerbugs/__init__.py:4: ExtDeprecationWarning: Importing flask.ext.assets is deprecated, use flask_assets instead.
  from flask.ext.assets import Environment, Bundle
/usr/lib/python3.6/site-packages/webassets/filter/__init__.py:722: UserWarning: Error while loading builtin filter module 'webassets.filter.rjsmin': cannot import name 'rjsmin'
  'module \'%s\': %s' % (module_name, e))
/usr/lib/python3.6/site-packages/flask_assets.py:336: ExtDeprecationWarning: Importing flask.ext.script is deprecated, use flask_script instead.
  from flask.ext import script
/usr/lib/python3.6/site-packages/flask_sqlalchemy/__init__.py:794: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.  Set it to True or False to suppress this warning.
  'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '
/home/fanys/blockerbugs/blockerbugs/controllers/forms.py:24: ExtDeprecationWarning: Importing flask.ext.wtf is deprecated, use flask_wtf instead.
  from flask.ext.wtf import Form
/home/fanys/blockerbugs/blockerbugs/controllers/admin/__init__.py:26: ExtDeprecationWarning: Importing flask.ext.admin is deprecated, use flask_admin instead.
  from flask.ext.admin.babel import gettext
_internal    2018-07-22 15:10:49 INFO     * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

We should stop doing that :) Fixing should be pretty straightforward.

Note: This is an issue even in Python 2.


Metadata Update from @frantisekz:
- Issue assigned to frantisekz

4 years ago

Metadata Update from @frantisekz:
- Issue close_status updated to: Fixed

3 years ago

Login to comment on this ticket.

Metadata