shijl0925 / flask-adminlte3 Goto Github PK
View Code? Open in Web Editor NEWBootstrap AdminLTE3 Templatea dapted to the flask framework Flask-Admin
License: MIT License
Bootstrap AdminLTE3 Templatea dapted to the flask framework Flask-Admin
License: MIT License
I'm getting an ImportError
while trying the sample app:
from flask_adminlte3_base import AdminLTE3Base
ModuleNotFoundError: No module named 'flask_adminlte3_base'
where's the flask_adminlte3_base module?
I have a problem when I try to run in local env. How can I run the sample application with the latest version?
I get some following errors:
/extensions.py", line 5, in <module>
from flask_adminlte3_base import AdminLTE3Base
ModuleNotFoundError: No module named 'flask_adminlte3_base'
Nice project - it would be really useful to be able to use AdminLTE without using its static files in the projects source code itself.
Just found out that the base.html template references 'admin/layout.html' that is not correct and should be 'flask-admin/layout.html'.
Traceback
[2021-06-01 11:50:07,467] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
File "/home/lobi/workspace/soc-reporting-alerting/venv/lib/python3.8/site-packages/flask/app.py", line 2070, in wsgi_app
response = self.full_dispatch_request()
File "/home/lobi/workspace/soc-reporting-alerting/venv/lib/python3.8/site-packages/flask/app.py", line 1515, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/lobi/workspace/soc-reporting-alerting/venv/lib/python3.8/site-packages/flask/app.py", line 1513, in full_dispatch_request
rv = self.dispatch_request()
File "/home/lobi/workspace/soc-reporting-alerting/venv/lib/python3.8/site-packages/flask/app.py", line 1499, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home/lobi/workspace/soc-reporting-alerting/soc_reporter/flask_app/__init__.py", line 13, in home
return render_template('index.html')
File "/home/lobi/workspace/soc-reporting-alerting/venv/lib/python3.8/site-packages/flask/templating.py", line 147, in render_template
return _render(
File "/home/lobi/workspace/soc-reporting-alerting/venv/lib/python3.8/site-packages/flask/templating.py", line 128, in _render
rv = template.render(context)
File "/home/lobi/workspace/soc-reporting-alerting/venv/lib/python3.8/site-packages/jinja2/environment.py", line 1304, in render
self.environment.handle_exception()
File "/home/lobi/workspace/soc-reporting-alerting/venv/lib/python3.8/site-packages/jinja2/environment.py", line 925, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/home/lobi/workspace/soc-reporting-alerting/soc_reporter/flask_app/templates/index.html", line 1, in top-level template code
{% extends 'flask-admin/base.html' %}
File "/home/lobi/workspace/soc-reporting-alerting/venv/lib/python3.8/site-packages/flask_adminlte3/templates/flask-admin/base.html", line 2, in top-level template code
{% import 'admin/layout.html' as layout with context -%}
File "/home/lobi/workspace/soc-reporting-alerting/venv/lib/python3.8/site-packages/flask/templating.py", line 59, in get_source
return self._get_source_fast(environment, template)
File "/home/lobi/workspace/soc-reporting-alerting/venv/lib/python3.8/site-packages/flask/templating.py", line 95, in _get_source_fast
raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: admin/layout.html
172.24.160.1 - - [01/Jun/2021 11:50:07] "GET / HTTP/1.1" 500 -
Steps to reproduce:
GET /
If I have Time I am glad to provide a fix.
As flask-script is no longer maintaned and no longer compatible with flask:
$ python manage.py
Traceback (most recent call last):
File "/home/mdk/clones/Flask-AdminLTE3/sample_application/manage.py", line 4, in <module>
from flask_script import Manager
File "/home/mdk/clones/Flask-AdminLTE3/.venv/lib/python3.9/site-packages/flask_script/__init__.py", line 15, in <module>
from flask._compat import text_type
ModuleNotFoundError: No module named 'flask._compat'
mongdbengin is not working
Already installed flask-admin
but get this error:
ERROR: Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI.
Flask-AdminLTE3 depends on flask-admin@ https://github.com/flask-admin/flask-admin/archive/bootstrap4.zip
Hi,
Where is Admin LTE 3 Base?
from flask_adminlte3_base import AdminLTE3Base
File:
https://github.com/shijl-0925/Flask-AdminLTE3/blob/master/sample_application/apps/extensions.py
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.