Routing
brunoavpinheiro opened this issue · 0 comments
brunoavpinheiro commented
When I run the admin on "/", all the paths are broken, both the static and app routing.
Code:
from flask import Flask
from flask.ext.superadmin import Admin
from mongoengine import Document, StringField, connect
app = Flask(__name__)
app.config['SECRET_KEY'] = 'da79dg7asd87agsd8a'
mongodb_settings = {
'db':'test',
}
connect(**mongodb_settings)
class User(Document):
username = StringField(unique=True)
email = StringField(unique=True)
if __name__ == '__main__':
admin = Admin(app, url="/")
admin.register(User)
app.debug = True
app.run('0.0.0.0', 8000)