Commit e4465a863019368aa0d3e341d95f97e3fe0ea121
1 parent
af1ea318
Exists in
master
and in
4 other branches
More french install documentation
Showing
2 changed files
with
16 additions
and
14 deletions
Show diff stats
INSTALL.md
... | ... | @@ -74,28 +74,30 @@ La procédure: |
74 | 74 | |
75 | 75 | |
76 | 76 | |
77 | -Pycharm Integration | |
77 | +Intégration Pycharm | |
78 | 78 | ------------------- |
79 | 79 | |
80 | -As this projects makes use of the application factory | |
81 | -pattern, using pycharm requires some tiny configuration | |
82 | -effort. | |
80 | +Ce projet utilisant le pattern "factory", il faut procéder | |
81 | +à quelques configuration afin de le faire tourner avec | |
82 | +pycharm. | |
83 | + | |
84 | +Pour une procédure détaillée, voir la page: | |
83 | 85 | |
84 | -Look at | |
85 | 86 | https://flask.palletsprojects.com/en/1.1.x/cli/#pycharm-integration |
86 | -for more details. | |
87 | 87 | |
88 | 88 | But basically, you just have to Edit the Run Configurations, |
89 | 89 | and set the fields: |
90 | 90 | |
91 | -- select module name, and set it to 'flask' | |
92 | -- set Parameters to run | |
91 | +Dans le menu 'Edit Configurations', changer les champs: | |
92 | + | |
93 | +- 'module name' positionné à 'flask' | |
94 | +- et dans le champs 'Parameters' choisir 'run' | |
95 | + | |
93 | 96 | |
97 | +Normalement, cette configuration permet de lire les variables positionées dans le fichier .flaskenv | |
94 | 98 | |
95 | -It should read the environment variables | |
96 | -- FLASK_ENV | |
97 | -- FLASK_APP | |
99 | + FLASK_ENV=development | |
100 | + FLASK_APP=pdc_web | |
98 | 101 | |
99 | -you have previously set in the file `.flaskenv` | |
100 | 102 | |
101 | -Thats it, run you webapp through PyCharm, enjoy. | |
103 | +Ainsi fait, exécutez votre projet depuis pycharm et testez. | ... | ... |
resources/apache2-virtual-host.conf
... | ... | @@ -14,7 +14,7 @@ Define flaskapp_path /var/www/html/pdc-web |
14 | 14 | Define flaskapp_wsgiscript pdc_web.wsgi |
15 | 15 | Define flaskapp_server_name your-server-name-comes-here |
16 | 16 | Define flaskapp_server_addr your-server-address-comes-here |
17 | -Define flaskapp_subdir pdc | |
17 | +Define flaskapp_subdir your-app-subdir or / | |
18 | 18 | Define flaskapp_user apache |
19 | 19 | Define flaskapp_group apache |
20 | 20 | ... | ... |