Coder Social home page Coder Social logo

Comments (7)

mrjoes avatar mrjoes commented on July 21, 2024

Can open /Users/natan/.virtualenvs/metacraft/lib/python2.7/site-packages/Flask_AdminEx-0.0.1-py2.7.egg/flask_adminex/templates/admin/lib.html and check if render_form looks like:

{% macro render_form(form, cancel_url, extra=None) -%}

?

from flask-admin.

 avatar commented on July 21, 2024

It does. I reinstalled AdminEx from source.

from flask-admin.

mrjoes avatar mrjoes commented on July 21, 2024

And it still does not work?

If you run built-in example (sqla/simple.py), it crashes with same exception?

from flask-admin.

 avatar commented on July 21, 2024

I never thought to run the examples - I ran sqla/simple.py and it worked completely fine. One thing I noticed, though, is that the example had a different interface than mine did. The creation function was shown as a button with my application, but was shown as a tab with the example.

I'll close this now since it's been determined that this is an issue on my side and not that of Flask-AdminEx. Thanks.

from flask-admin.

mrjoes avatar mrjoes commented on July 21, 2024

Also, forgot to mention: use self.render instead of self.render_template. self.render_template is undefined.

from flask-admin.

 avatar commented on July 21, 2024

Thanks.

from flask-admin.

 avatar commented on July 21, 2024

Okay, I figured out what happened. I used self.render_template, and in some stupid move, that led me to copy the templates to my own templates folder. Then, I go without working on my project for a few days and forget about it. The older templates that I copied took precedence over the newer templates in the module.

Well, that was kinda stupid of me. I still can't remember why I did that.
Thanks.

from flask-admin.

Related Issues (20)

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.