flask-classful icon indicating copy to clipboard operation
flask-classful copied to clipboard

Class based views for Flask

Results 8 flask-classful issues
Sort by recently updated
recently updated
newest added

updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.5.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.0...v0.5.0) - [github.com/psf/black: 24.1.1 → 24.4.2](https://github.com/psf/black/compare/24.1.1...24.4.2) - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0)

When I run the following code in python 3.6.9, The `__init__()` method is called 5 times. ``` from flask import Flask from flask_classful import FlaskView, route app = Flask(__name__) class...

Views can have a `route_base`, which can contain parameters (e.g. `route_base = /foo/`). Such parameters are given as arguments to the methods of the view. When generating routing rules for...

Is it possible to specify a directory to render templates from? This would be analogous to Blueprints `template_folder` argument.

I recently ran into an issue with decorators. I have the following code (modified for simplification): ``` class RecipesView(FlaskView): decorators = [login_required] def before_request(self, name, id=None, **kwargs): print(current_user.full_name) def index(self):...

I no longer pass a "context" to my templates but rather the view itself. If something must be available within a template I simply add it as an attribute to...

I was just implementing a project and [read up on the documentation](http://flask-classful.teracy.org/#providing-your-own-base-class) about specifying base views. While this works, it seems a little clunky and prone to errors. I was...

Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.4 to 3.1.6. Release notes Sourced from jinja2's releases. 3.1.6 This is the Jinja 3.1.6 security release, which fixes security issues but does not otherwise change behavior...

dependencies