Will Roberts
c204f3fd17
use webpack file-loader to manage assets apart from js and css
7 years ago
Will Roberts
cf0e254949
fix flake8 import order
7 years ago
Will Roberts
bc5feac02f
don't run flake8 on node_modules
7 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
Steven Loria
16a789bf0c
Enable csrf protection on register form
...
Closes #34
8 years ago
Steven Loria
525ad8d8b0
Remove unnecessary import (fixes flake)
8 years ago
Steven Loria
58a8ea3309
Fix 'relationship' alias
...
Closes #134
8 years ago
Steven Woods
970b780edd
update CSRFProtect in extensions
...
FlaskWTFDeprecationWarning: "flask_wtf.CsrfProtect" has been renamed to "CSRFProtect" and will be removed in 1.0.
8 years ago
Aleksandr Sobolev
2d0dbc693a
Refs Issue #119 replace session with current_user, remove unnecessary href
8 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
Ryan Jarvis
570d5bc587
Fix for new Bcrypt and SqlAlchemy type casting in Postgres
8 years ago
Steven Loria
c9a5139bef
Fix checks for exit codes and update doc for shell command
8 years ago
Jeremy Epstein
1f9ef5ba78
move autoapp to project root, update readme, update travis file
8 years ago
Jeremy Epstein
db0246de90
rename cli.py to commands.py
8 years ago
Jeremy Epstein
2f1168b6d4
make test command exit with correct status
8 years ago
Jeremy Epstein
6739ba9859
fix broken import
8 years ago
Jeremy Epstein
850b71e2c8
add 'clean' and 'urls' commands borrowed from Flask-Script
8 years ago
Jeremy Epstein
f28c31ec77
fix import order
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
matthewblain
089c3c265a
Switch CSRF token rendering mechanism.
...
Switch Register CSRF protect from form.hidden_tag to input hidden
value=csrf_token.
I don't understand why this is necessary, as form.hidden_tag works
elsewhere--this may be a symptom of an aliasing issue. However, it was
the solution applied to fix login in a previous commit as described in
https://github.com/sloria/cookiecutter-flask/issues/34 .
9 years ago
Christian Stade-Schuldt
045800f366
update Bootstrap to 3.3.6
9 years ago
Christian Stade-Schuldt
7a2780a534
update font awesome to 4.5.0
9 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
d6f1f5c2cc
Travis: Migrating from legacy to container-based infrastructure
9 years ago
Wagner Augusto Andreoli
8230fa17d5
Remove pylint from project, remove ipdb and ipython from requirements
9 years ago
Wagner Augusto Andreoli
e27fa10e15
Add an option to use pylint after flake8, change code to conform to pylint rules
9 years ago
Wagner Augusto Andreoli
819fd8d700
Fix environment variables
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
Wagner Augusto Andreoli
34b1750122
Fix for ValueError: Invalid rounds
9 years ago
Wagner Augusto Andreoli
88d8ee69b7
Update requirements, pin modules to the latest version, plus two small fixes
9 years ago
Vividh S Viswanatha
649a694f8a
Update extension imports to flask_*
...
See mitsuhiko/flask#1135
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
1e7763796d
Upgrade bootstrap and jquery
10 years ago
Steven Loria
9f769fa43a
Update extension imports to flask_*
...
See mitsuhiko/flask#1135
10 years ago
sloria
91b4865140
Update bower requirements
10 years ago
sloria
ccf58472c8
Fix travis.yml; use py.test and install dev-requirements
...
Fixes #25
10 years ago
sloria
8412376285
Add compat.py and fix Python 3 error
10 years ago
sloria
27f9135f53
Get app secret key from environment variable
11 years ago
Tyler Stephens
af3d885f8e
Use explicit relative import instead of implicit.
...
Implicit relative imports are discouraged
(http://legacy.python.org/dev/peps/pep-0008/#imports ) and no longer supported
in python 3.
11 years ago
Nidal Al Hariri
c8f0549f27
Minor fix, added missing closing div tag
11 years ago
Steven Loria
5a4c4425f6
Default error code to 500
...
[fixes #18 ]
11 years ago
Steven Loria
e3286524df
Update README
11 years ago
Steven Loria
c8d07d0d29
Models must explicitly inherit from SurrogatePK to add primary key
11 years ago
Steven Loria
757d152699
Rename test_webtests -> test_functional
11 years ago
Steven Loria
c156760f67
Add forms tests
11 years ago
Steven Loria
35c32eccc1
Fix app fixture scope. Make function-scoped to make tests more isolated
11 years ago
Steven Loria
338ef8b280
Correctly initialize debug toolbar
11 years ago