Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sentry_sdk | |
from sentry_sdk.integrations.aws_lambda import AwsLambdaIntegration | |
import toml | |
config = toml.load("./pyproject.toml") | |
# Sentry error logging | |
app_name = config["tool"]["poetry"]["name"] | |
version = config["tool"]["poetry"]["version"] | |
sentry_sdk.init( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Ignore thumbnails created by windows | |
Thumbs.db | |
#Ignore MacOS files | |
*.DS_Store | |
#Ignore files build by Visual Studio | |
*.obj | |
*.exe | |
*.pdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"rulesDirectory": [ | |
"node_modules/codelyzer" | |
], | |
"rules": { | |
"arrow-return-shorthand": true, | |
"callable-types": true, | |
"class-name": true, | |
"comment-format": [ | |
true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module 'django_project' not found | |
=> Logiquement et après seulement un an de recherche il faut ajouter le dir au python path. | |
Normalement il suffit de faire un export PYTHONPATH="${PYTHONPATH}:/var/www/django_project" | |
mais ca marche que en shell, pas en apache/venv | |
DONC => Créer un "nano /var/www/venv/spie/lib/python3.5/site-packages/django_project.pth" (fichier .pth) | |
Dans lequel on met le ou les paths "/var/www/django_project" ici |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.colorTheme": "Dracula Soft", | |
"gitlens.advanced.messages": { | |
"suppressShowKeyBindingsNotice": true | |
}, | |
"workbench.iconTheme": "vscode-icons", | |
// Controls the font size in pixels. | |
"editor.fontSize": 14, | |
"editor.wordWrap": "on", | |
"editor.renderWhitespace": "all", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"always_show_minimap_viewport": true, | |
"draw_white_space": "all", | |
"font_size": 14, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"open_files_in_new_window": false, | |
"show_encoding": true, |