Committer and PMC Member of Apache Superset
- ๐ซง Diving into music, code and underwater
- ๐ฑ Nurturing plants and open source projects
Reach out:
Skeleton application to use with Flask-AppBuilder (pip install flask-appbuilder)
Committer and PMC Member of Apache Superset
Reach out:
calling:
http://127.0.0.1:5000/employeeview/edit/1
an error is thrown for:
/FlaskAppBuilder/lib/python3.11/site-packages/flask_appbuilder/fields.py", line 128, in
self._object_list = list((str(self.get_pk_func(obj)), obj) for obj in objs)
^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
I can't seem to find these credentials.
Am I glossing right over them?
In an Ubuntu 13.10 64 , Python 2.7, I just clone the project skeleton in a virtualenv where i installed flask and flask-appbuilder; and run.py return error:
/home/hilam/python-envs/flask/bin/python /home/hilam/PycharmProjects/transparencia/run.py
Traceback (most recent call last):
File "/home/hilam/PycharmProjects/transparencia/run.py", line 1, in
from app import app
File "/home/hilam/PycharmProjects/transparencia/app/init.py", line 33, in
from app import views
File "/home/hilam/PycharmProjects/transparencia/app/views.py", line 1, in
from flask.ext.appbuilder.baseapp import BaseApp
File "/home/hilam/python-envs/flask/local/lib/python2.7/site-packages/flask/exthook.py", line 81, in load_module
reraise(exc_type, exc_value, tb.tb_next)
File "/home/hilam/python-envs/flask/local/lib/python2.7/site-packages/flask_appbuilder/baseapp.py", line 3, in
from .views import IndexView
File "/home/hilam/python-envs/flask/local/lib/python2.7/site-packages/flask_appbuilder/views.py", line 6, in
from .baseviews import expose, BaseView, BaseCRUDView
File "/home/hilam/python-envs/flask/local/lib/python2.7/site-packages/flask_appbuilder/baseviews.py", line 5, in
from forms import GeneralModelConverter
File "/home/hilam/python-envs/flask/local/lib/python2.7/site-packages/flask_appbuilder/forms.py", line 18, in
from fieldwidgets import (BS3TextAreaFieldWidget,
File "/home/hilam/python-envs/flask/local/lib/python2.7/site-packages/flask_appbuilder/fieldwidgets.py", line 2, in
from flask.ext.wtf import fields, widgets, TextField
File "/home/hilam/python-envs/flask/local/lib/python2.7/site-packages/flask/exthook.py", line 87, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named flask.ext.wtf.TextField
Process finished with exit code 1
Hi Guru,
I tried to append a new language option , taiwan, based on design of flask-appbuilder-skeleton. According to flask app-builder instruction, I append an entry in config.py :
"tw": {"flag": "tw", "name": "Taiwan"},
also I extract phrases by babel.cfg to generate messages.pot file in /babel. Here are codes in babel.cfg :
[python: **.py]
[jinja2: /templates/.html]
keywords=_,gettext,ngettext,lazy_gettext
encoding = utf-8`
next, make po file in /tw/LC_MESSAGES/messages.po. after translating po file and compiling po file to mo file, seems everything is done. however, I only saw Taiwan option in language list, the translation of "Welcome" is still in English.
I tried making /tw folder in flask-appbuilder/translations. but TW is still shown in English. How should I append a new language in flask-appbuilder ? Please advise. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.