Content-Length: 610974 | pFad | http://github.com/Eternonq/fullstackpython.com/commit/6b9fb4843cbc1b105923216ace3e8f42402c8cc2

65 fixing typos in flask post · Eternonq/fullstackpython.com@6b9fb48 · GitHub
Skip to content

Commit 6b9fb48

Browse files
committed
fixing typos in flask post
1 parent 691d092 commit 6b9fb48

File tree

7 files changed

+28
-21
lines changed

7 files changed

+28
-21
lines changed

blog/python-3-flask-green-unicorn-ubuntu-1604-xenial-xerus.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ <h2>Flask and Gunicorn</h2>
138138
<a href="/vim.html">Vim</a> but <a href="/emacs.html">Emacs</a> and other
139139
<a href="/development-environments.html">development environments</a> work great as
140140
well.</p>
141-
<p>Within <code>app.py</code> write the following code.</p>
141+
<p>Within <code>__init__.py</code> write the following code.</p>
142142
<div class="highlight"><pre><span class="kn">from</span> <span class="nn">flask</span> <span class="kn">import</span> <span class="n">Flask</span><span class="p">,</span> <span class="n">Response</span>
143143

144144

@@ -154,8 +154,9 @@ <h2>Flask and Gunicorn</h2>
154154

155155

156156
<p>We could run our app with the Flask development server using the
157-
<code>python app.py</code> command. Let's instead run our Flask app with
158-
Gunicorn.</p>
157+
<code>python __init__.py</code> command. Instead run the Flask app with
158+
Gunicorn. Go to the directory above the <code>flaskproj</code> folder, in our
159+
case we can enter <code>cd ~</code> then use the <code>gunicorn</code> command:</p>
159160
<div class="highlight"><pre>gunicorn flaskproj:app
160161
</pre></div>
161162

feeds/all-en.atom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ we can test to make sure Flask is working properly. I prefer to use
201201
&lt;a href="/vim.html"&gt;Vim&lt;/a&gt; but &lt;a href="/emacs.html"&gt;Emacs&lt;/a&gt; and other
202202
&lt;a href="/development-environments.html"&gt;development environments&lt;/a&gt; work great as
203203
well.&lt;/p&gt;
204-
&lt;p&gt;Within &lt;code&gt;app.py&lt;/code&gt; write the following code.&lt;/p&gt;
204+
&lt;p&gt;Within &lt;code&gt;__init__.py&lt;/code&gt; write the following code.&lt;/p&gt;
205205
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;flask&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Flask&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Response&lt;/span&gt;
206206

207207

@@ -217,8 +217,9 @@ well.&lt;/p&gt;
217217

218218

219219
&lt;p&gt;We could run our app with the Flask development server using the
220-
&lt;code&gt;python app.py&lt;/code&gt; command. Let's instead run our Flask app with
221-
Gunicorn.&lt;/p&gt;
220+
&lt;code&gt;python __init__.py&lt;/code&gt; command. Instead run the Flask app with
221+
Gunicorn. Go to the directory above the &lt;code&gt;flaskproj&lt;/code&gt; folder, in our
222+
case we can enter &lt;code&gt;cd ~&lt;/code&gt; then use the &lt;code&gt;gunicorn&lt;/code&gt; command:&lt;/p&gt;
222223
&lt;div class="highlight"&gt;&lt;pre&gt;gunicorn flaskproj:app
223224
&lt;/pre&gt;&lt;/div&gt;
224225

feeds/all.atom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ we can test to make sure Flask is working properly. I prefer to use
201201
&lt;a href="/vim.html"&gt;Vim&lt;/a&gt; but &lt;a href="/emacs.html"&gt;Emacs&lt;/a&gt; and other
202202
&lt;a href="/development-environments.html"&gt;development environments&lt;/a&gt; work great as
203203
well.&lt;/p&gt;
204-
&lt;p&gt;Within &lt;code&gt;app.py&lt;/code&gt; write the following code.&lt;/p&gt;
204+
&lt;p&gt;Within &lt;code&gt;__init__.py&lt;/code&gt; write the following code.&lt;/p&gt;
205205
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;flask&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Flask&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Response&lt;/span&gt;
206206

207207

@@ -217,8 +217,9 @@ well.&lt;/p&gt;
217217

218218

219219
&lt;p&gt;We could run our app with the Flask development server using the
220-
&lt;code&gt;python app.py&lt;/code&gt; command. Let's instead run our Flask app with
221-
Gunicorn.&lt;/p&gt;
220+
&lt;code&gt;python __init__.py&lt;/code&gt; command. Instead run the Flask app with
221+
Gunicorn. Go to the directory above the &lt;code&gt;flaskproj&lt;/code&gt; folder, in our
222+
case we can enter &lt;code&gt;cd ~&lt;/code&gt; then use the &lt;code&gt;gunicorn&lt;/code&gt; command:&lt;/p&gt;
222223
&lt;div class="highlight"&gt;&lt;pre&gt;gunicorn flaskproj:app
223224
&lt;/pre&gt;&lt;/div&gt;
224225

feeds/matt-makai.atom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ we can test to make sure Flask is working properly. I prefer to use
201201
&lt;a href="/vim.html"&gt;Vim&lt;/a&gt; but &lt;a href="/emacs.html"&gt;Emacs&lt;/a&gt; and other
202202
&lt;a href="/development-environments.html"&gt;development environments&lt;/a&gt; work great as
203203
well.&lt;/p&gt;
204-
&lt;p&gt;Within &lt;code&gt;app.py&lt;/code&gt; write the following code.&lt;/p&gt;
204+
&lt;p&gt;Within &lt;code&gt;__init__.py&lt;/code&gt; write the following code.&lt;/p&gt;
205205
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;flask&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Flask&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Response&lt;/span&gt;
206206

207207

@@ -217,8 +217,9 @@ well.&lt;/p&gt;
217217

218218

219219
&lt;p&gt;We could run our app with the Flask development server using the
220-
&lt;code&gt;python app.py&lt;/code&gt; command. Let's instead run our Flask app with
221-
Gunicorn.&lt;/p&gt;
220+
&lt;code&gt;python __init__.py&lt;/code&gt; command. Instead run the Flask app with
221+
Gunicorn. Go to the directory above the &lt;code&gt;flaskproj&lt;/code&gt; folder, in our
222+
case we can enter &lt;code&gt;cd ~&lt;/code&gt; then use the &lt;code&gt;gunicorn&lt;/code&gt; command:&lt;/p&gt;
222223
&lt;div class="highlight"&gt;&lt;pre&gt;gunicorn flaskproj:app
223224
&lt;/pre&gt;&lt;/div&gt;
224225

feeds/matt-makai.rss.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ we can test to make sure Flask is working properly. I prefer to use
201201
&lt;a href="/vim.html"&gt;Vim&lt;/a&gt; but &lt;a href="/emacs.html"&gt;Emacs&lt;/a&gt; and other
202202
&lt;a href="/development-environments.html"&gt;development environments&lt;/a&gt; work great as
203203
well.&lt;/p&gt;
204-
&lt;p&gt;Within &lt;code&gt;app.py&lt;/code&gt; write the following code.&lt;/p&gt;
204+
&lt;p&gt;Within &lt;code&gt;__init__.py&lt;/code&gt; write the following code.&lt;/p&gt;
205205
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;flask&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Flask&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Response&lt;/span&gt;
206206

207207

@@ -217,8 +217,9 @@ well.&lt;/p&gt;
217217

218218

219219
&lt;p&gt;We could run our app with the Flask development server using the
220-
&lt;code&gt;python app.py&lt;/code&gt; command. Let's instead run our Flask app with
221-
Gunicorn.&lt;/p&gt;
220+
&lt;code&gt;python __init__.py&lt;/code&gt; command. Instead run the Flask app with
221+
Gunicorn. Go to the directory above the &lt;code&gt;flaskproj&lt;/code&gt; folder, in our
222+
case we can enter &lt;code&gt;cd ~&lt;/code&gt; then use the &lt;code&gt;gunicorn&lt;/code&gt; command:&lt;/p&gt;
222223
&lt;div class="highlight"&gt;&lt;pre&gt;gunicorn flaskproj:app
223224
&lt;/pre&gt;&lt;/div&gt;
224225

feeds/post.atom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ we can test to make sure Flask is working properly. I prefer to use
201201
&lt;a href="/vim.html"&gt;Vim&lt;/a&gt; but &lt;a href="/emacs.html"&gt;Emacs&lt;/a&gt; and other
202202
&lt;a href="/development-environments.html"&gt;development environments&lt;/a&gt; work great as
203203
well.&lt;/p&gt;
204-
&lt;p&gt;Within &lt;code&gt;app.py&lt;/code&gt; write the following code.&lt;/p&gt;
204+
&lt;p&gt;Within &lt;code&gt;__init__.py&lt;/code&gt; write the following code.&lt;/p&gt;
205205
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;flask&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Flask&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Response&lt;/span&gt;
206206

207207

@@ -217,8 +217,9 @@ well.&lt;/p&gt;
217217

218218

219219
&lt;p&gt;We could run our app with the Flask development server using the
220-
&lt;code&gt;python app.py&lt;/code&gt; command. Let's instead run our Flask app with
221-
Gunicorn.&lt;/p&gt;
220+
&lt;code&gt;python __init__.py&lt;/code&gt; command. Instead run the Flask app with
221+
Gunicorn. Go to the directory above the &lt;code&gt;flaskproj&lt;/code&gt; folder, in our
222+
case we can enter &lt;code&gt;cd ~&lt;/code&gt; then use the &lt;code&gt;gunicorn&lt;/code&gt; command:&lt;/p&gt;
222223
&lt;div class="highlight"&gt;&lt;pre&gt;gunicorn flaskproj:app
223224
&lt;/pre&gt;&lt;/div&gt;
224225

source/content/posts/160510-flask-gunicorn-ubuntu-1604.markdown

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ we can test to make sure Flask is working properly. I prefer to use
123123
[development environments](/development-environments.html) work great as
124124
well.
125125

126-
Within `app.py` write the following code.
126+
Within `__init__.py` write the following code.
127127

128128
from flask import Flask, Response
129129

@@ -139,8 +139,9 @@ Within `app.py` write the following code.
139139

140140

141141
We could run our app with the Flask development server using the
142-
`python app.py` command. Let's instead run our Flask app with
143-
Gunicorn.
142+
`python __init__.py` command. Instead run the Flask app with
143+
Gunicorn. Go to the directory above the `flaskproj` folder, in our
144+
case we can enter `cd ~` then use the `gunicorn` command:
144145

145146
gunicorn flaskproj:app
146147

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Eternonq/fullstackpython.com/commit/6b9fb4843cbc1b105923216ace3e8f42402c8cc2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy