Code Monkey home page Code Monkey logo

flask-adminlte3's Introduction

Hey, I'm shijl0925, welcome to my GitHub ๐Ÿ‘‹

๐Ÿ’ป Tech Stack:

Python Django Flask

๐Ÿ“Š Progress Stats:

shijl0925's GitHub stats

Top Langs

flask-adminlte3's People

Contributors

ajesh-pb-ai avatar shijl0925 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flask-adminlte3's Issues

What is flask-adminlte3-base?

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?

Sample template

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'

templates referenced in flask-admin/base.html are not all correct

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:

  • `pip install Flask-AdminLTE3
  • load Flask Admin LTE3 extension in flask app.
  • use a simple index.html that just extends base.html and is renderedfor GET /

If I have Time I am glad to provide a fix.

Consider migrating sample to flask's click-based cli

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'

Cannot install from pip

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 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.