jangjunha
f112dc0aed
Fix deferred callback doc
2018-10-26 00:33:12 +09:00
David Lord
af0d15271b
Merge pull request #2963 from garenchan/bugfix-#2961
...
Fix #2961:ignore colon followed by slash when split app_import_path
2018-10-24 09:06:39 -07:00
garenchan
9da281c04c
ignore colon with slash when split app_import_path
...
Flask currently supports importing app through a combination of module
path and app variable name, such as '/usr/app.py:my_app'. When the
module path contains a colon, it will conflict with this import way and
a `flask.cli.NoAppException` will be raised.
A file path on a Windows system may contain a colon followed by a slash.
So we solved this problem on Windows by ignoring the colon followed by a
slash when we split app_import_path.
Fix issue #2961 .
2018-10-24 23:47:41 +08:00
David Lord
725435a2b2
Merge pull request #2962 from garenchan/dev
...
Cache return values to avoid repeated function calls.
2018-10-23 08:27:46 -07:00
garenchan
7a334062ef
Cache return values to avoid repeated function calls.
2018-10-23 22:10:20 +08:00
moyosore
b4376bab18
Fixed typo in app.py
2018-10-13 20:57:41 +02:00
Grey Li
691411f951
Fix typo in issue template
2018-09-30 08:21:17 +08:00
David Lord
7e1d133d7f
Merge pull request #2914 from garenchan/docs
...
Reduce unnecessary function calls.
2018-09-23 11:14:13 -07:00
garenchan
f5e80dfeda
Reduce unnecessary function calls.
...
When propagate exceptions, the function call of "_find_error_handler"
makes no sense.
2018-09-23 16:40:35 +08:00
David Lord
05644138fc
split code and output
2018-09-21 06:05:52 -07:00
Grey Li
9556883d2b
Merge pull request #2916 from tombusby/patch-1
...
Make script output into comments to not break syntax highlighting
2018-09-21 18:33:56 +08:00
garenchan
d1b0d6c770
Fix docs errors
...
1.Grammar error: 'return' should be 'returns'; 'would is' should be
'would be'.
2.Reloader is used to reload and fork process if modules were changed
rather than when an exception occurred.
3.The sample code is not concise enough.
2018-09-21 13:05:06 +08:00
Tom Busby
d75c3c253e
Make script output into comments to not break syntax highlighting
...
http://flask.pocoo.org/docs/1.0/quickstart/#url-building
In the URL Building section of the quickstart, the script output is shown right after the code.
This breaks syntax highlighting for the whole code-block. To fix this, I have made the output into comments.
2018-09-19 23:42:35 +02:00
Jarek Lipski
1a31fc71f6
fix @click.command example by adding parens
...
Otherwise the example fails with the following error:
"name = name or cmd.name AttributeError: 'function' object has no attribute 'name'".
More details: https://stackoverflow.com/a/51923415/4619705
2018-09-19 10:02:51 -07:00
David Lord
3dc9b7f7c8
Merge pull request #2915 from loomchild/master
...
fix @click.command example by adding parens
2018-09-19 10:01:34 -07:00
Jarek Lipski
df4ca56eac
fix @click.command example by adding parens
...
Otherwise the example fails with the following error:
"name = name or cmd.name AttributeError: 'function' object has no attribute 'name'".
More details: https://stackoverflow.com/a/51923415/4619705
2018-09-19 18:55:12 +02:00
David Lord
fbd8618b13
Merge pull request #2912 from pallets/docs-theme
...
Update Sphinx conf for recent theme changes
2018-09-17 08:56:25 -07:00
David Lord
eed911fa79
reformat sphinx config
2018-09-17 08:35:53 -07:00
David Lord
58a8c456ab
update sphinx config
2018-09-17 08:35:28 -07:00
David Lord
b32b093fe0
Merge pull request #2910 from garenchan/docs
...
fix issue: no theme named 'flask' found
2018-09-17 06:39:45 -07:00
chengkang
c9b6982843
remove DocVersion related
2018-09-17 21:05:53 +08:00
chengkang
51981d1b4a
fix issue: no theme named 'flask' found
2018-09-17 16:18:52 +08:00
Grey Li
95008cf43d
Add prefix for all commands in documentation ( #2877 )
...
* Add prefix for commands in docs
* Add prefix for commands in example's README
2018-09-09 17:41:56 +09:00
Alexis Benoist
7be1089904
doc reqcontext fix teardown example ( #2892 )
...
* doc reqcontext fix teardown example
* remove comments
2018-08-25 00:12:15 +09:00
David Lord
ea28e547d0
Merge pull request #2872 from cktan98/master
...
Fix grammatical error
2018-07-24 11:04:58 -07:00
cktan98
88d0d793c7
Fix grammatical error
2018-07-25 01:57:30 +08:00
David Lord
cd2e758ae7
Merge pull request #2861 from jwflory/fix/uwsgi-docs
...
[docs] Fix broken Sphinx cross-references; use :doc: tags where necessary
2018-07-20 10:42:09 -07:00
David Lord
f35a33136a
Merge pull request #2870 from jerr0328/docs-update-cli-scriptinfo
...
📚 Improve docs about ScriptInfo
2018-07-20 10:28:04 -07:00
Jeremy Mayeres
ca292373c7
📚 Improve docs about ScriptInfo
...
Improve documentation for the CLI using application factories and
how/when the ScriptInfo object is passed with Application Discovery
2018-07-20 19:20:04 +02:00
Justin W. Flory
82bff7585c
Fix broken cross-references; use :doc: tags where necessary
2018-07-11 10:12:18 -05:00
Justin W. Flory
08be12fd71
Make explicit call-out to contributing guidelines in README
2018-07-11 09:38:17 -05:00
David Lord
ff14e3015f
Merge pull request #2850 from billfienberg/patch-1
...
Fix grammatical error: incorrect verb conjugation
2018-06-29 13:49:01 -07:00
Bill Fienberg
aa7e42eb03
Fix grammatical error: incorrect verb conjugation
...
Before: >However, as a project *get* bigger
After: >However, as a project *gets* bigger
2018-06-29 14:35:44 -05:00
David Lord
b93077e9db
Merge pull request #2848 from gcrsaldanha/use-itervalues
...
🎨 Use `itervalues` instead of `iteritems` when `key` is not necessary
2018-06-28 22:23:08 -07:00
Gabriel Saldanha
aa590bc953
🎨 Use itervalues instead of iteritems
2018-06-29 00:10:44 -03:00
David Lord
2366cafde9
Merge pull request #2843 from gcrsaldanha/use-set-literal-in-docs
...
🎨 Use set literal instead of set method in file uploading example
2018-06-28 07:22:35 -07:00
David Lord
5ae66df1ff
Merge pull request #2842 from gcrsaldanha/task/remove-deprecated-code
...
🔥 Remove code supposed to be removed at v1.0
2018-06-28 07:22:17 -07:00
David Lord
b9ad458cea
Merge pull request #2839 from jlara310/master
...
Typo in docs
2018-06-27 22:25:16 -07:00
Juan Lara
a256c4d44f
Typo in docs
...
"keeps track on" -> "keeps track of"
2018-06-27 21:49:21 -07:00
Gabriel Saldanha
78530d2322
🎨 Use set literal instead of set method
2018-06-27 08:58:26 -03:00
Gabriel Saldanha
2608267dd7
🔥 Remove code supposed to be removed at v1.0
2018-06-27 08:23:44 -03:00
David Lord
6056186463
Merge pull request #2837 from quamilek/update-docs
...
Update docs - add command for listing rules.
2018-06-20 06:50:59 -07:00
Kamil Wargula
018e0b9ee0
Update docs - add command for listing rules.
2018-06-20 14:39:08 +02:00
David Lord
3fb9c97aeb
Merge pull request #2834 from greyli/remove-unnecessary-period
...
Remove unnecessary period in documentation
2018-06-17 20:43:57 -07:00
Grey Li
96b5ddc9ed
Remove unnecessary period in documentation
2018-06-17 12:12:37 +08:00
David Lord
f38e605a26
Merge pull request #2828 from greyli/patch-9
...
Update cli tips for .flaskenv
2018-06-15 12:50:15 -07:00
Grey Li
d1bad82a16
Add cli tips for .flaskenv
2018-06-15 19:12:50 +08:00
ThiefMaster
c93c5e750e
Merge branch '1.0-maintenance'
2018-06-14 13:31:40 +02:00
Adrian
e44c8e1b2c
Merge pull request #2765 from ThiefMaster/custom-cli-ignore-debug
...
Add option to not overwrite debug flag in cli
2018-06-14 13:31:00 +02:00
ThiefMaster
fbaeb1fc99
Add option to not overwrite debug flag in cli
...
This is mainly intended for custom CLIs that may load a config file
which already sets the debug flag and does not make use of the `FLASK_*`
env vars at all.
2018-06-14 13:25:05 +02:00