Görüyorum ki adblocker kullanıyorsun
Press "Enter" to skip to content

Kick-offInformation: Django da shell

Hello everyone 🙂 I’m starting a series called Single Pulse Information, and the purpose of this series is not to tell the general subject, but rather to transfer the small problems or the little information learned here instantly. 

I learned something new when I was trying to create something with Django, and inside the djangon, the shell was able to launch and access information on the terminal. 

python manage.py shell

#Oluşturulan app can import on the terminal and write directly information about that model with create

from products.models import Product
Product.objects.create(title = 'trial 1', description='description 2', price='123')

Be First to Comment

    Leave a Reply