pallets-eco / flask-environments

Environment tools and configuration for Flask applications
MIT License
30 stars 14 forks source link

Error in example code #3

Open ykessler opened 10 years ago

ykessler commented 10 years ago

In the Getting Started example code

env = Environments(self.app)

Should be

env = Environments(app)

(Thanks, great project!)

akaRem commented 10 years ago

+1

this is also at front page examples

from flask import Flask
from flask_environments import Environments

app = Flask(__name__)
env = Environments(self.app, var_name='CUSTOM_VAR_NAME', default_env='CUSTOM_ENV')