Skip to content

Instantly share code, notes, and snippets.

@egitimplus
Created October 29, 2019 11:55
Show Gist options
  • Save egitimplus/7c658856569e35ffe3d3297e8c366f00 to your computer and use it in GitHub Desktop.
Save egitimplus/7c658856569e35ffe3d3297e8c366f00 to your computer and use it in GitHub Desktop.
save()
from learning.models import Product
from django.contrib.auth.models import User
user = User(username='editor', email='[email protected]')
# Kullanıcı bilgilerini user nesnesine atamış olduk.
# Bunları veritabanına işlemek için save() methodunu kullanmalıyız.
user.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment