Skip to content
Kyle J. Roux edited this page Aug 2, 2014 · 2 revisions

Welcome to the flask-xxl wiki!

Flask-XXL

here the goal is to make flask almost as easy to use as django. With django style url routing, and template filter registration in the settings file, along with url modules, context_processor registration and app(blueprint) registration, just add in settings file like djangos INSTALLED_APPS

INSTALLED_BLUEPRINTS = [
    # use your project blueprints
    'bp_name.bp_name',
    # or installed by pip
    'package.bp_name.bp_name',
    # or just use the built in apps
    'flask.ext.xxl.apps.auth.auth',
    'flask.ext.xxl.apps.admin.admin',
    'flask.ext.xxl.apps.page.page',
    ]

same with template filters

TEMPLATE_FILTERS = [
    'bp_name.module.filter',
    'flask.ext.xxl.core.filters.date_pretty',
  ]

and context processors

CONTEXT_PROCESSORS = [
    'bp_name.module.ctx_processor',
    'flask.ext.xxl.core.context_processors.add_func',
]

and url modules

URL_MODULES = [
    'bp_name.urls',
    'flask.ext.xxl.apps.auth.urls',
]