Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AJAX and x-editable now allowed, plus uploading images to SQL database #2256

Open
wants to merge 157 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
cb8141c
Update .gitignore
mccarthysean Jun 15, 2022
3b4f995
Made "details" view look just like the "edit" and "create" views
mccarthysean Jun 15, 2022
2a4759c
no use for "input_disable=True"
mccarthysean Jun 15, 2022
51dfaa1
switched to self.get_details_columns() for getting "details" columns
mccarthysean Jun 24, 2022
dbf375c
Added 'x-editable-ajax' and 'x-editable-color' roles for editable fie…
mccarthysean Jun 1, 2022
da0d185
Added ImageUploadFieldDB for uploading images to database instead of …
mccarthysean Jun 1, 2022
2fc7063
Added example for demonstrating x-editable AJAX and database-uploaded…
mccarthysean Jun 1, 2022
d8105e6
added .env to .gitignore
mccarthysean Jun 2, 2022
4c1944d
Added Bootstrap Container, Row, and Column classes to form rules
mccarthysean Jun 2, 2022
8b6bcc5
linted
mccarthysean Jun 3, 2022
d7c9e9b
added margin around form submission buttons
mccarthysean Jun 2, 2022
c814870
improved documentation and functionality for legacy class Row() in fo…
mccarthysean Jun 3, 2022
be9d06a
Ensure the children in a Bootstrap row are BSCol classes
mccarthysean Jun 3, 2022
1fe9e04
Made "details" view look just like the "edit" and "create" views
mccarthysean Jun 15, 2022
669c926
Revert "Merge branch 'Details-View-Like-Edit-and-Create-Views'"
mccarthysean Jun 15, 2022
3d384aa
no use for "input_disable=True"
mccarthysean Jun 15, 2022
0d76442
for development in a Docker container
mccarthysean Jun 2, 2022
0d2a043
for Poetry to use
mccarthysean Jun 2, 2022
067f8ec
for running in development
mccarthysean Jun 2, 2022
ec16107
Added NestedRuleClasses to add customizable classes, which allows Boo…
mccarthysean Jun 2, 2022
15b6627
bumped version
mccarthysean Jun 2, 2022
b4ad009
added redis and python-dotenv
mccarthysean Jun 2, 2022
30972fa
debug the current flask app file
mccarthysean Jun 2, 2022
5886e70
more capable dev container with Redis
mccarthysean Jun 2, 2022
e33e11a
adding necessary packages to dev container
mccarthysean Jun 3, 2022
b5b7377
more devcontainer optimization
mccarthysean Jun 3, 2022
2cc17db
changed names for Bootstrap container, row, and col
mccarthysean Jun 3, 2022
8afe8aa
added example of Bootstrap container, row, and col
mccarthysean Jun 3, 2022
070701e
re-added class Row() for backwards compatibility
mccarthysean Jun 3, 2022
c14aefc
more capable dev container with Redis
mccarthysean Jun 2, 2022
e258738
adding necessary packages to dev container
mccarthysean Jun 3, 2022
e439c1a
more devcontainer optimization
mccarthysean Jun 3, 2022
859d52a
added flake8
mccarthysean Jun 3, 2022
316faf7
improved documentation for legacy class Row() in form rules
mccarthysean Jun 3, 2022
8bc1cd1
fixed bug caught by Flake8
mccarthysean Jun 3, 2022
e5786d8
changed line endings
mccarthysean Jun 3, 2022
2b918da
bumped version for package release
mccarthysean Jun 3, 2022
bdb5cda
fixed class Row() bug
mccarthysean Jun 3, 2022
46b4f5e
changed CRLF to LF
mccarthysean Jun 3, 2022
c8d7b6a
added packages to dev environment, to run tests
mccarthysean Jun 3, 2022
a963647
converted to Unix format
mccarthysean Jun 3, 2022
f25affb
bumped version for new package
mccarthysean Jun 3, 2022
2fb2f47
bumped version for new details view
mccarthysean Jun 15, 2022
731cb6a
changed line endings to LF instead of CRLF
mccarthysean Jun 15, 2022
903b554
converted line endings to LF instead of CRLF
mccarthysean Jun 15, 2022
288a745
bumped version
mccarthysean Jun 16, 2022
128abab
bumped version
mccarthysean Jun 21, 2022
c8928d5
switched to self.get_details_columns() for getting "details" columns
mccarthysean Jun 24, 2022
ee3bfbb
bumped version
mccarthysean Jun 24, 2022
a390c7f
added dos2unix
mccarthysean Jun 24, 2022
ce3debf
re-added indent
mccarthysean Jul 4, 2022
753ce9e
better margin below inline-field cards, and above inline-field buttons
mccarthysean Jul 11, 2022
0259152
removed unnecessary mt-class
mccarthysean Jul 11, 2022
120bc7b
better margin below inline-field cards, and above inline-field buttons
mccarthysean Jul 11, 2022
c6a832c
better margin below inline-field cards, and above inline-field buttons
mccarthysean Jul 11, 2022
a73f635
bumped version
mccarthysean Jul 11, 2022
fe35a10
removed unnecessary mt-2
mccarthysean Jul 11, 2022
c8b02e6
added mb-3 to existing inline field and template for inline field
mccarthysean Jul 11, 2022
6d95ab7
bumped version
mccarthysean Jul 11, 2022
37a8f88
trying to make it so line endings are always Linux LF instead of CRLF…
mccarthysean Jul 11, 2022
82ba981
upgraded to latest pymongo api
Jun 20, 2022
6592de0
updated examples; no longer pin pymongo to 2.x.x
Jun 20, 2022
d12c214
Bootstrap 4 form checklists more compact and standard
mccarthysean Jun 21, 2022
f5ccee0
Update tests to work with werkzeug v2.1.0+
ibushong Jun 26, 2022
1ffa9ba
Add `-U` argument to tox.ini to ensure that requirements are updated/…
ibushong Jun 26, 2022
078b308
Add test env setup notes for MacOS
ibushong Jun 26, 2022
b26ea73
Added flask-babel as fallback for flask-babelex
TitaniumHocker Jun 27, 2022
e49b6df
build(deps): bump pymongo from 2.4.1 to 2.5.2 in /examples/tinymongo
dependabot[bot] Jul 8, 2022
5e8e2ca
Added 'x-editable-ajax' and 'x-editable-color' roles for editable fie…
mccarthysean Jun 1, 2022
d57d2f5
Added ImageUploadFieldDB for uploading images to database instead of …
mccarthysean Jun 1, 2022
3321a72
Added example for demonstrating x-editable AJAX and database-uploaded…
mccarthysean Jun 1, 2022
079e66c
Added Bootstrap Container, Row, and Column classes to form rules
mccarthysean Jun 2, 2022
8665124
linted
mccarthysean Jun 3, 2022
34a6e44
added margin around form submission buttons
mccarthysean Jun 2, 2022
3de6976
improved documentation and functionality for legacy class Row() in fo…
mccarthysean Jun 3, 2022
6a81d90
Ensure the children in a Bootstrap row are BSCol classes
mccarthysean Jun 3, 2022
1e724df
Made "details" view look just like the "edit" and "create" views
mccarthysean Jun 15, 2022
4721729
Revert "Merge branch 'Details-View-Like-Edit-and-Create-Views'"
mccarthysean Jun 15, 2022
447d021
no use for "input_disable=True"
mccarthysean Jun 15, 2022
8fc4e89
for development in a Docker container
mccarthysean Jun 2, 2022
01ff9b2
for Poetry to use
mccarthysean Jun 2, 2022
2b87ac5
for running in development
mccarthysean Jun 2, 2022
289a040
Added NestedRuleClasses to add customizable classes, which allows Boo…
mccarthysean Jun 2, 2022
97280e9
bumped version
mccarthysean Jun 2, 2022
8483bc4
added redis and python-dotenv
mccarthysean Jun 2, 2022
c2b6388
debug the current flask app file
mccarthysean Jun 2, 2022
904a387
more capable dev container with Redis
mccarthysean Jun 2, 2022
3161a7f
adding necessary packages to dev container
mccarthysean Jun 3, 2022
e3cf605
more devcontainer optimization
mccarthysean Jun 3, 2022
8020e7c
changed names for Bootstrap container, row, and col
mccarthysean Jun 3, 2022
3e105ff
added example of Bootstrap container, row, and col
mccarthysean Jun 3, 2022
282d145
re-added class Row() for backwards compatibility
mccarthysean Jun 3, 2022
06adf2f
more capable dev container with Redis
mccarthysean Jun 2, 2022
b39769f
adding necessary packages to dev container
mccarthysean Jun 3, 2022
bd617d2
more devcontainer optimization
mccarthysean Jun 3, 2022
793d296
added flake8
mccarthysean Jun 3, 2022
a4ebfcb
improved documentation for legacy class Row() in form rules
mccarthysean Jun 3, 2022
1433cd9
fixed bug caught by Flake8
mccarthysean Jun 3, 2022
9e828f8
changed line endings
mccarthysean Jun 3, 2022
bdebe3d
bumped version for package release
mccarthysean Jun 3, 2022
b347b85
fixed class Row() bug
mccarthysean Jun 3, 2022
84d7e10
changed CRLF to LF
mccarthysean Jun 3, 2022
2273642
added packages to dev environment, to run tests
mccarthysean Jun 3, 2022
781e769
converted to Unix format
mccarthysean Jun 3, 2022
2acaa5b
bumped version for new package
mccarthysean Jun 3, 2022
2ab2439
bumped version for new details view
mccarthysean Jun 15, 2022
6530935
changed line endings to LF instead of CRLF
mccarthysean Jun 15, 2022
a5f40c5
converted line endings to LF instead of CRLF
mccarthysean Jun 15, 2022
e29dacd
bumped version
mccarthysean Jun 16, 2022
e7b16da
bumped version
mccarthysean Jun 21, 2022
845ae6f
switched to self.get_details_columns() for getting "details" columns
mccarthysean Jun 24, 2022
16869cf
bumped version
mccarthysean Jun 24, 2022
4c5484a
added dos2unix
mccarthysean Jun 24, 2022
599acd4
re-added indent
mccarthysean Jul 4, 2022
b4120c5
better margin below inline-field cards, and above inline-field buttons
mccarthysean Jul 11, 2022
4fbf4ab
removed unnecessary mt-class
mccarthysean Jul 11, 2022
0e703c7
better margin below inline-field cards, and above inline-field buttons
mccarthysean Jul 11, 2022
238039a
better margin below inline-field cards, and above inline-field buttons
mccarthysean Jul 11, 2022
77e8d9d
bumped version
mccarthysean Jul 11, 2022
3f40089
removed unnecessary mt-2
mccarthysean Jul 11, 2022
799948c
added mb-3 to existing inline field and template for inline field
mccarthysean Jul 11, 2022
b489339
bumped version
mccarthysean Jul 11, 2022
45111b2
trying to make it so line endings are always Linux LF instead of CRLF…
mccarthysean Jul 11, 2022
bec57c1
reverted "make details like list view"
mccarthysean Jul 11, 2022
0ecc2d5
Merge branch 'Docker-Dev-Container' of https://github.com/mccarthysea…
mccarthysean Jul 11, 2022
e8f5d8e
bumped version
mccarthysean Jul 12, 2022
2f139f9
Ensure the children in a Bootstrap row are BSCol classes
mccarthysean Jun 3, 2022
da39188
added mb-3 to existing inline field and template for inline field
mccarthysean Jul 11, 2022
be88262
bumped version
mccarthysean Jul 12, 2022
91581cf
better example
mccarthysean Jul 28, 2022
2067304
reset the pre-configured loader's name to the "new_name"
mccarthysean Jul 28, 2022
8f5dddf
create a demo for form_ajax_refs inside the inline_models
mccarthysean Jul 28, 2022
7434df2
update demo with more comments and more descriptive names
mccarthysean Jul 28, 2022
da9cb56
bumped version
mccarthysean Jul 28, 2022
0e0eaeb
Raise a helpful error if the primary key field is not included in the…
mccarthysean Aug 1, 2022
8d41156
putting helpful message in try: except
mccarthysean Aug 1, 2022
3e76ff2
bumped version
mccarthysean Aug 3, 2022
ae039c2
changes from main branch?
mccarthysean Mar 13, 2023
1f474f0
Merge remote-tracking branch 'upstream/master' into Docker-Dev-Container
mccarthysean Mar 13, 2023
ead2483
1.6.17 re-added $el.removeAttr('data-template');
mccarthysean Mar 13, 2023
99fcebf
1.6.17 re-added $el.removeAttr('data-template');
mccarthysean Mar 13, 2023
962653e
Merge remote-tracking branch 'upstream/master' into Docker-Dev-Container
mccarthysean Jan 2, 2024
eaedd5f
version = "1.6.19"
mccarthysean Jan 2, 2024
e411106
fixed line endings
mccarthysean Jan 2, 2024
f65dabc
same devcontainer stuff as myijack
mccarthysean Jan 2, 2024
65dbe14
need proper imports - version = "1.6.20"
mccarthysean Jan 2, 2024
4e0802f
WTForms DeprecationWarning: Flags should be stored in dicts and not i…
mccarthysean Jan 5, 2024
46e6d25
Merge remote-tracking branch 'upstream/master'
mccarthysean Jan 5, 2024
61725c1
WTForms DeprecationWarning: Flags should be stored in dicts and not i…
mccarthysean Jan 5, 2024
e9ce3ea
version = "1.6.21"
mccarthysean Jan 5, 2024
7f9fe97
changed to python 3.11
mccarthysean Jun 12, 2024
7c4e64b
Better error checking in ImageUploadFieldDB class
mccarthysean Jun 12, 2024
acbaf64
Better error checking in ImageUploadFieldDB class
mccarthysean Jun 12, 2024
50816db
Merge remote-tracking branch 'upstream/master'
mccarthysean Oct 5, 2024
51c1c5d
Merge remote-tracking branch 'upstream/master' into Docker-Dev-Container
mccarthysean Oct 5, 2024
0b24f89
fixed dev environment
mccarthysean Oct 5, 2024
5ad5b2a
Merge branch 'Docker-Dev-Container'
mccarthysean Oct 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
161 changes: 161 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# # If not running interactively, don't do anything
# case $- in
# *i*) ;;
# *) return;;
# esac

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi

if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi

# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
#__conda_setup="$('/home/sean/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
#if [ $? -eq 0 ]; then
# eval "$__conda_setup"
#else
# if [ -f "/home/sean/miniconda3/etc/profile.d/conda.sh" ]; then
# . "/home/sean/miniconda3/etc/profile.d/conda.sh"
# else
# export PATH="/home/sean/miniconda3/bin:$PATH"
# fi
#fi
#unset __conda_setup
# <<< conda initialize <<<

#export DISPLAY=:0.0

# Make Python aliases
alias python=python3
alias pip=pip3

# Make Docker aliases
alias dc=docker-compose

# At yarn's request
# alias node=nodejs

# # Activate the virtual environment, whose environment variable was created in the Dockerfile
# . $VIRTUAL_ENV/bin/activate

# Add project directory to PYTHONPATH so Python can find my files
# export PYTHONPATH=$PATH:/workspace/app

# The following is also done when NMV and NodeJS are installed, but it must be done each time a Bash terminal is loaded
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

72 changes: 72 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at
// https://github.com/microsoft/vscode-dev-containers/tree/master/containers/python-3-miniconda
{
"name": "flask_admin_dev",
// Path that the Docker build should be run from relative to devcontainer.json.
// For example, a value of ".." would allow you to reference content in sibling directories. Defaults to "."
// Use either the Dockerfile or docker-compose.yml to create the Docker container
// "dockerFile": "Dockerfile",
// "cacheFrom": "ghcr.io/example/example-devcontainer"
"dockerComposeFile": "../docker-compose.dev.yml",
// Required if using dockerComposeFile. The name of the service VS Code should connect to once running.
// The 'service' property is the name of the service for the container that VS Code should
// use. Update this value and .devcontainer/docker-compose.yml to the real service name.
"service": "flask_admin_dev",
// The optional 'workspaceFolder' property is the path VS Code should open by default when
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
// This way if you click "Reopen in container", it knows which workspace to use.
// "workspaceFolder": "/home/user/workspace",
// "workspaceFolder": "/project",
"workspaceFolder": "/workspace",
// "remoteUser": "user",
// "containerUser": "user",
// Forward Docker container port 5005 to Docker host port 8080 with -p 8080:5005 (host port localhost:8080 or http://127.0.0.1/:8080)
// "forwardPorts": [5005],
// "appPort": ["0.0.0.0:5002:5005"],
// Map the Docker sockets with -v argument
// Run as --privileged
// Set environment variables with -e argument
// "runArgs": [
// "-v", "/var/run/docker.sock:/var/run/docker.sock",
// // "-v", "${env:HOME}${env:USERPROFILE}:/c-users-sean",
// // Avoid reinstalling extensions on container rebuilds (only works if only one VS Code instance is doing this at a time)
// // "-v", "extensions_volume:/root/.vscode-server",
// "--privileged",],
// Uncomment the next line to use a non-root user. See https://aka.ms/vscode-remote/containers/non-root-user.
// "runArgs": [ "-u", "1000" ],
// "runArgs": ["-u", "vscode"],
"customizations": {
"vscode": {
"settings": {
// "python.pythonPath": "/app/venv/bin/python",
"remote.extensionKind": {
"ms-azuretools.vscode-docker": "workspace"
},
// "macros": { // requires macros extension by publisher:"geddski"
// "pythonExecSelectionAndCursorDown": [
// "python.execSelectionInTerminal",
// //"vscode.window.activeTextEditor.show()",
// "cursorDown"
// ]
// },
"git.enableSmartCommit": true,
"git.autofetch": true,
},
"extensions": [
"ms-python.python",
"ms-python.isort",
"ms-python.pylint",
"dbaeumer.vscode-eslint",
"ms-azuretools.vscode-docker",
"ms-python.vscode-pylance",
"ms-python.black-formatter",
"samuelcolvin.jinjahtml",
"GitHub.copilot",
"ms-python.flake8",
"ms-toolsai.jupyter"
]
}
}
// Run commands after the container is created.
// "postCreateCommand": "cd /home/users/upload_to_aws/client && npm install && npm run build"
}
3 changes: 3 additions & 0 deletions .devcontainer/noop.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This file is copied into the container along with environment.yml* from the
parent folder. This is done to prevent the Dockerfile COPY instruction from
failing if no environment.yml is found.
130 changes: 130 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
// Regular Python file debugger to run the current file
{
"name": "Python Run Current File",
"type": "python",
"request": "launch",
// Run whichever file is open (perfect for running different examples)
"program": "${file}",
"console": "integratedTerminal",
"jinja": true,
"justMyCode": false,
"env": {
"PYTHONPATH": "/home/user/workspace"
}
// "stopOnEntry": true,
},
// Debug with Flask
{
"name": "flask run --no-debugger --no-reload",
"type": "python",
"request": "launch",
// "program": "${file}",
// "console": "integratedTerminal",
"module": "flask",
"env": {
// "FLASK_APP": "examples/sqla-images-postgres-x-editable-ajax/app:app",
"FLASK_APP": "${file}:app",
"FLASK_ENV": "development",
"FLASK_DEBUG": "0"
},
"args": [
"run",
"--no-debugger",
"--no-reload",
// "--with-threads"
// "--without-threads"
],
"jinja": true,
"justMyCode": false,
// "stopOnEntry": true,
},
// Pytest all files
{
"name": "Pytest All Files",
"type": "python",
"request": "launch",
"module": "pytest",
"console": "integratedTerminal",
"args": [
"/home/user/workspace/flask_admin/tests/",
"-v",
// "--lf",
"--durations=0",
// // Debugger doesn't always stop on breakpoints with coverage enabled
// "--no-cov",
],
"jinja": true,
"justMyCode": false,
// "stopOnEntry": true,
},
// Pytest all files last-failed
{
"name": "Pytest All Files Last-Failed",
"type": "python",
"request": "launch",
"module": "pytest",
"console": "integratedTerminal",
"args": [
"/home/user/workspace/flask_admin/tests/",
"-v",
"--lf",
"--durations=0",
// // Debugger doesn't always stop on breakpoints with coverage enabled
// "--no-cov",
],
"jinja": true,
"justMyCode": false,
// "stopOnEntry": true,
},
// Pytest run the current file only
{
"name": "Pytest Current File",
"type": "python",
"request": "launch",
"module": "pytest",
"console": "integratedTerminal",
"args": [
"${file}",
"-v",
// "--lf",
"--durations=0",
// // Debugger doesn't always stop on breakpoints with coverage enabled
// "--no-cov",
],
"jinja": true,
"justMyCode": false,
// "stopOnEntry": true,
"env": {
"_PYTEST_RAISE": "1"
},
},
// Pytest run the current file only, with only the last-failed tests
{
"name": "Pytest Current File Last-Failed",
"type": "python",
"request": "launch",
"module": "pytest",
"console": "integratedTerminal",
"args": [
"${file}",
"-v",
"--lf",
"--durations=0",
// // Debugger doesn't always stop on breakpoints with coverage enabled
// "--no-cov",
],
"jinja": true,
"justMyCode": false,
// "stopOnEntry": true,
"env": {
"_PYTEST_RAISE": "1"
},
},
]
}
Loading
Loading