File tree 6 files changed +178
-0
lines changed
6 files changed +178
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__ /
3
+ * .py [cod ]
4
+ * $py.class
5
+
6
+ # C extensions
7
+ * .so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build /
12
+ develop-eggs /
13
+ dist /
14
+ downloads /
15
+ eggs /
16
+ .eggs /
17
+ lib /
18
+ lib64 /
19
+ parts /
20
+ sdist /
21
+ var /
22
+ wheels /
23
+ pip-wheel-metadata /
24
+ share /python-wheels /
25
+ * .egg-info /
26
+ .installed.cfg
27
+ * .egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ * .manifest
34
+ * .spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov /
42
+ .tox /
43
+ .nox /
44
+ .coverage
45
+ .coverage. *
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ * .cover
50
+ * .py,cover
51
+ .hypothesis /
52
+ .pytest_cache /
53
+ cover /
54
+
55
+ # Translations
56
+ * .mo
57
+ * .pot
58
+
59
+ # Django stuff:
60
+ * .log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance /
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs /_build /
74
+
75
+ # PyBuilder
76
+ target /
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default /
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
98
+ __pypackages__ /
99
+
100
+ # Celery stuff
101
+ celerybeat-schedule
102
+ celerybeat.pid
103
+
104
+ # SageMath parsed files
105
+ * .sage.py
106
+
107
+ # Environments
108
+ .env
109
+ .venv
110
+ env /
111
+ venv /
112
+ ENV /
113
+ env.bak /
114
+ venv.bak /
115
+
116
+ # Spyder project settings
117
+ .spyderproject
118
+ .spyproject
119
+
120
+ # Rope project settings
121
+ .ropeproject
122
+
123
+ # mkdocs documentation
124
+ /site
125
+
126
+ # mypy
127
+ .mypy_cache /
128
+ .dmypy.json
129
+ dmypy.json
130
+
131
+ # Pyre type checker
132
+ .pyre /
133
+
134
+ # pytype static type analyzer
135
+ .pytype /
Original file line number Diff line number Diff line change
1
+ {
2
+ "python.pythonPath" : " /Users/seanngpack/Programming Stuff/Projects/food_chat_app/env/bin/python3.7"
3
+ }
Original file line number Diff line number Diff line change
1
+ import os
2
+
3
+ from flask import Flask
4
+
5
+
6
+ def create_app (test_config = None ):
7
+ # create and configure the app
8
+ app = Flask (__name__ , instance_relative_config = True )
9
+ app .config .from_mapping (
10
+ SECRET_KEY = 'dev' ,
11
+ DATABASE = os .path .join (app .instance_path , 'flaskr.sqlite' ),
12
+ )
13
+
14
+ if test_config is None :
15
+ # load the instance config, if it exists, when not testing
16
+ app .config .from_pyfile ('config.py' , silent = True )
17
+ else :
18
+ # load the test config if passed in
19
+ app .config .from_mapping (test_config )
20
+
21
+ # ensure the instance folder exists
22
+ try :
23
+ os .makedirs (app .instance_path )
24
+ except OSError :
25
+ pass
26
+
27
+ # a simple page that says hello
28
+ @app .route ('/hello' )
29
+ def hello ():
30
+ return 'Hello, World!'
31
+
32
+ return app
Original file line number Diff line number Diff line change
1
+ from flask import Flask
2
+
3
+ app = Flask (__name__ )
4
+
5
+
6
+ @app .route ('/' )
7
+ def hello ():
8
+ return 'Hello, World!'
You can’t perform that action at this time.
0 commit comments