Steven Loria
f294804bf2
Remove unnecessary `clean` and `urls` commands ( #524 )
...
* We're py3-only, so py[co] files won't get created
* Flask's not has a built-in `flask routes` command
5 years ago
James Curtin
d2f37093e1
One-time black refactor of template
5 years ago
James Curtin
047cef845d
Fix logging issue
...
Closes #247
5 years ago
Steven Loria
973bcd96cb
Use environment variables for configuration
...
As per https://12factor.net/
Use environs/python-dotenv for reading/parsing variables
6 years ago
Will Roberts
119b102693
replace bower with npm and Flask-Assets with webpack
...
The npm configuration:
- Includes linting of javascript with eslint
The webpack setup here:
- Bundles javascript and css, using hashing to support server-side
caching, with support from Flask-Webpack and
manifest-revision-webpack-plugin
- Uses babel to transpile ES6 javascript
- Includes a development server with hot-replacing of javascript and
css code
7 years ago
Ali Cirik
472e496609
This passes `app_name` instead of the +
...
current `app_name.app` to Flask. Please see `About the First Parameter`
note in http://flask.pocoo.org/docs/0.11/api/
8 years ago
Jeremy Epstein
db0246de90
rename cli.py to commands.py
8 years ago
Jeremy Epstein
850b71e2c8
add 'clean' and 'urls' commands borrowed from Flask-Script
8 years ago
Jeremy Epstein
c9dff24208
add click-ified 'lint' command
8 years ago
Jeremy Epstein
5010ebc949
add missing cli import in app.py
8 years ago
Jeremy Epstein
3d8f8c3c9e
Use Click instead of Flask-Script for CLI commands
...
- Update Flask to 0.11 (with built-in Click integration)
- Remove manage.py
- Add autoapp.py per Flask doc's new recommendations
for using Click with an app factory
- Define cookiecutter-flask's commands in cli.py
- Register shell context and shell commands as part
of factory-based app creation
- Update README instructions with examples for running
commands in new Click style
8 years ago
Steven Loria
796d955cda
Run lint command when testing the cookiecutter
9 years ago
Guilherme M. Trein
8577dc7fd6
Enable CSRF protection
...
- CSRF is enabled by default for login form
- This commit resolves issue #34
9 years ago
Wagner Augusto Andreoli
2986743a8c
Add an option to fix imports before linting, make all code conform to the linting rules
9 years ago
Patman64
2a45b9f4ba
Python code clean-up (PEP-8 related and other)
...
- Add the UTF-8 marker to files without it.
- Fix some hanging indents.
- Change ''' into """ in docstrings.
- Enforce two blank line rule.
10 years ago
Steven Loria
5a4c4425f6
Default error code to 500
...
[fixes #18 ]
11 years ago
Steven Loria
338ef8b280
Correctly initialize debug toolbar
11 years ago
Steven Loria
6303991a69
Correctly set bcrypt log rounds in app config
11 years ago
Steven Loria
7ede47885f
Rename repo_name -> app_name
11 years ago
Steven Loria
0a2412525f
Add error handlers and templates for 401, 404, and 500
11 years ago
Steven Loria
82eca9190d
Add Flask-Cache
11 years ago
Steven Loria
64e28cfdaa
Add migrations with Flask-Migrate
11 years ago
Steven Loria
e9dfd0573a
Add Flask-Debug toolbar
...
Also, don't bundle and minify assets in dev enviromnet
11 years ago
Steven Loria
d1d832ba97
Add Factory Boy support
11 years ago
Steven Loria
581ce4d981
Flask-Login support
11 years ago
Steven Loria
4dad84074b
Use Bcrypt for password hashing and refactor extension registration
11 years ago
Steven Loria
abda53a2f3
Fix Procfile
11 years ago
Steven Loria
4aea7377a1
Remove env parameter from app factory function
11 years ago
Steven Loria
1f9e6b171e
Store password hash and add basic test
...
Adds Flask-Testing and passlib dependencies
11 years ago
Myke Stubbs
e4662ec209
Use expected config object when creating app
11 years ago
Steven Loria
3a411b4abe
Modular structure with blueprints
...
Views are all in located in the modules package, which contains blueprints
Also, use alert-warning instead of alert-error for Bootstrap3
11 years ago
Steven Loria
0f142a65e8
Flask-assets support
...
Bundle and minify css and js.
11 years ago
Steven Loria
7d37cb6254
Add dev/prod configuration
...
Environment can be switched via the MYFLASKAPP_ENV system variable.
11 years ago
Steven Loria
4bd4c7971a
Initial commit
11 years ago