Home Page Microblog


(venv) $ export FLASK_APP=microblog.py



Download 2,44 Mb.
Pdf ko'rish
bet13/17
Sana30.12.2021
Hajmi2,44 Mb.
#90837
1   ...   9   10   11   12   13   14   15   16   17
Bog'liq
mega-tutorial

(venv) $ export FLASK_APP=microblog.py

If you are using the Microsoft Windows command prompt, use



set

instead of



export

in the


command above.

Are you ready to be blown away? You can run your first web application, with the following

command:

(venv) $ flask run

* Serving Flask app "microblog"

* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

After the server initializes it will wait for client connections. The output from



flask run

indicates that the server is running on IP address 127.0.0.1, which is always the address of

your own computer. This address is so common that is also has a simpler name that you may

have seen before: localhost. Network servers listen for connections on a specific port number.

Applications deployed on production web servers typically listen on port 443, or sometimes

80 if they do not implement encryption, but access to these ports require administration rights.




8

CHAPTER 1. HELLO, WORLD!

Since this application is running in a development environment, Flask uses the freely available

port 5000. Now open up your web browser and enter the following URL in the address field:




Download 2,44 Mb.

Do'stlaringiz bilan baham:
1   ...   9   10   11   12   13   14   15   16   17




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish