Yeni Başlayanlar İçin Python Dersleri 2019 - FLASK - Ders 37

preview_player
Показать описание
Bu dersler serimizde nesne yönelimli Python programlama dili üzerine konuşacağız. Aşağıda bu dersler serisini kapsayan bazı konuları bulabilirsiniz dersleri mümkün olduğu kadar uygulama ve projeler ile zenginleştireceğiz.

Python tanım
Code kurulumu
Değişkenler
Veri Tipleri
List - Tuple - Set
Döngüler
Koşullu İfadeler
Dictionaries
Fonksiyon kavramı
Nesne yönelimli python
Modül kavramı
Dosya yapısı
Hatalar
Tanımlı ileri seviye fonksiyonlar
Veri görüntüleme
Web uygulama
ve çok daha fazlası..
Рекомендации по теме
Комментарии
Автор

5:46 da yaptığınız gibi interpreter seçmeye çalışıyorum ancak bende sanal ortam çıkmıyor seçeneklerde sebebi nedir

yigitcancelikk
Автор

Hocam şöyle bir hata alıyorum;
env\Scripts\activate : File cannot be loaded because running scripts is disabled on this system.
Engelini nasıl kaldırabilirim neden böyle oldu hiç anlamadım :D

elifc
Автор

Gürcan Hocam bu projeyi sizle beraber yapıyorum ve github a yüklemek istiyorum. Yüklersem herhangi bir sorun olur mu sizin için (sonuçta bu projeyi siz yaptınız )

furkan
Автор

Hocam 5:40 yaptiginiz gibi yapmama rağmen bende .vscode eklenmiyor(kendim eklemeye çalıştım yine olmadi)
Bi de bundan önce env\Scripts\activate yaptığımda hata almıştım
'Could not local flask application 'diye devam edemiyorum yardımcı olun

MAli-efnk
Автор

env
'virtualenv' is not recognized as an internal or external command,
operable program or batch file. hatası alıyorum

mehmetaloglu
Автор

" Set-ExecutionPolicy -ExecutionPolicy RemoteSigned " tırnak işareti arasındaki komut
Bu komutu girdim fakat aşşağıdaki gibi hata aldım yine olmadı diyenler şu yolu izlesin :
Başlat düğmesine sağ tıklayın orada Microsoft PowerShell birde Microsoft PowerShell ( Yönetici ) yazan var biz bu 2. olana yani
Microsoft PowerShell ( Yönetici ) olanı açıyoruz program açıldığında başlangıç satırınız da bulunduğunuz klasör
PS C:\Windows\system32> olacaktır. buraya Yukarıdaki tırnak içindeki kodu yapıştırıp enter'a basıp gelen ekrana " A " yazıp enter'a basıp kapatıyorsunuz, virtualenv\Scripts\activate komutunu Visual stüdyoda çalıştırıyorsunuz sorun çözülmüştür. Kolay gelsin
" Set-ExecutionPolicy -ExecutionPolicy RemoteSigned " tırnak işareti arasındaki komut
Set-ExecutionPolicy : kayıt defteri anahtarına erişim reddedildi. To change the execution policy for the default (LocalM
achine) scope, start Windows PowerShell with the "Run as administrator" option. To change the execution policy for the current user, run "Set-ExecutionPolicy -Scope CurrentUser".
At line:1 char:1
+ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
+
+ CategoryInfo : PermissionDenied: (:) [Set-ExecutionPolicy], UnauthorizedAccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException, Microsoft.PowerShell.Commands.SetExecutionPolicyCommand

tprakerol
Автор

Yardimci olabilir mi biri cleanblogdaki yeni dosyalar videodakiyle ayni degil eger birinde varsa benle iletisime gecebilir mi lutfen? 2 yil once basladim sonra unutup sildim simdi tekrar flask ogrenmek istiyorum.

MiranDeniz-jp
Автор

Merhaba hocam bende zaten kurulu diyor ancak klasör oluşturma komutu verdiğimde aşağıdaki hatayı alıyorum yardım eder misiniz?

PS virtualenv env

virtualenv : The term 'virtualenv' is not recognized as the name of a cmdlet, function, script f
ile, or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again.

tigerpakturk
Автор

Merhaba flask run deyince şu hatayı alıyorum:(env) PS C:\Users\avhas\clean_blog> flask run
Usage: flask run [OPTIONS]
Try 'flask run --help' for help.

Error: Failed to find Flask application or factory in module 'app'. Use 'app:name' to specify one. bu sorunu çözmemde yardımcı olabilir misiniz?

cuculencuculen
Автор

hocam pip install virtualenv yazdığımda böyle bir hata mesajı veriyor
pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path w
as included, verify that the path is correct and try again.
At line:1 char:1
+ pip install virtualenv
+ ~~~
+ CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

didemsevim
Автор

merhabalar hocam videolarınızı izleyerek ödevimi yapmaya çalışıyorum fakat böyle bir hata kodu alıyorum nasıl düzeltebilirim bunu
PS C:\Users\asus\Desktop\python> virtualenv env
virtualenv : The term 'virtualenv' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was include
d, verify that the path is correct and try again.
At line:1 char:1
+ virtualenv env
+
+ CategoryInfo : ObjectNotFound: (virtualenv:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

gamse-
Автор

The default
value is an empty array. At least one package must be specified.

pip-updater.VirtualEnv

( Ayarla da baktığım da pip update sıkıntısını sebebi kaliba yukarıdaki sebep. Peki sizce o eksik paketi nasıl belirtebilirim ? ) Hatayı gösterilen önerilere göre değiştirdim ama yine sonuç yok .

oguzhanpolat
Автор

(env) PS C:\Users\hp\Desktop\Yeni klasör\Phyton\Clean_Blog> flask run
Fatal error in launcher: Unable to create process using '"c:\users\hp\desktop\yeni "C:\Users\hp\Desktop\Yeni run': Sistem belirtilen dosyay? bulam?yor.


Hocam bu hatayı alıyorum cevap verirseniz sevinirim

egemenseyhan
Автор

merhaba Hocam ben bunu yapmak istediyim de bu problemle karsilasiyorum yardim dermisiniz
\Desktop\clean_blog> virtualenv env
virtualenv : The term 'virtualenv'
is not recognized as the name of a
cmdlet, function, script file, or
operable program. Check the spelling
of the name, or if a path was
included, verify that the path is
correct and try again.
At line:1 char:1
+ virtualenv env
+
+ CategoryInfo : Object
NotFound: (virtualenv:String) []
, CommandNotFoundException
+ FullyQualifiedErrorId : Comman
dNotFoundException

khalidnahmat
Автор

Hocam merhabalar, debug modunu bir türlü açamıyorum.
set FLASK_DEBUG=1
(env) PS flask run
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
ne hata veriyor ne de bir şey. debug modu açılmıyor

tahayasinerel
Автор

hocam virtualenv env yazınca hata alıyorum cannot be used diyor

baranklc
Автор

Hocam adım adım gidiyorum sizinle emeklerinize sağlık yalnız daha başında şunu diyor:

Sistem belirtilen yolu bulamıyor.
Yaptığım herşey sizinle aynı terminalde komple olan bu şekilde:
install virtualenv
Requirement already satisfied: virtualenv in (20.0.31)
Requirement already satisfied: distlib<1, >=0.3.1 in (from virtualenv) (0.3.1)
Requirement already satisfied: appdirs<2, >=1.4.3 in (from virtualenv) (1.4.4)
Requirement already satisfied: six<2, >=1.9.0 in (from virtualenv) (1.15.0)
Requirement already satisfied: filelock<4, >=3.0.0 in (from virtualenv) (3.0.12)
WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available.
You should consider upgrading via the -m pip install --upgrade pip' command.

env
created virtual environment CPython3.8.5.final.0-32 in 3408ms
creator CPython3Windows(dest=C:\Users\tr\Desktop\clean_blog\env, clear=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy,
added seed packages: pip==20.2.2, setuptools==49.6.0, wheel==0.35.1
activators BashActivator, BatchActivator, FishActivator, PowerShellActivator, PythonActivator, XonshActivator


Sistem belirtilen yolu bulamıyor.
command palette de sizinle aynı değil ilk yazan şey add browser breakpoint
Yardımcı olursanız sevinirim.

muratcanzengerer
Автор

(env) PS C:\Users\HASAN pip install flask
bunu yazıyorum kurulum yaparken
Installing collected packages: MarkupSafe, Werkzeug, Jinja2, itsdangerous, click, flask
ERROR: Could not install packages due to an EnvironmentError: [Errno 9] Bad file descriptor
tek satırlık bu hatayı veriyor devamında
(env) PS C:\Users\HASAN set FLASK_APP=app.py
(env) PS C:\Users\HASAN flask run
yapıyorum ve aşağıdaki hatayı alıyorum
flask : The term 'flask' is not recognized as the name of a cmdlet, function, script file, or op
erable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ flask run
+
+ CategoryInfo : ObjectNotFound: (flask:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

hasancaglar
Автор

Arin Hocam selamlar, ilk videodan bu videoya kadar geldim. Sizlere çok teşekkür ederim. Burada acemiliğimden kaynaklı sıkıntılar yaşadım. Virtual env kurarken, bir hata alıyorum. Pip install virtualenv dedikten sonra aşağıdaki hata veriyor. Bunu nası aşabilirim. Mac kullancısıyım.
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...

Tubetube
Автор

hocam flask run dediğimde böyle bir hata alıyorum ama çözemedim bir türlü
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
Usage: flask run [OPTIONS]

Error: Failed to find Flask application or factory in module "app". Use "FLASK_APP=app:name to specify one.

hasake