Python Django-the Practical Guide ~upd~ -

# Create Post.objects.create(title="Hello", content="World") posts = Post.objects.all() post = Post.objects.get(id=1) Update post.title = "New Title" post.save() Delete post.delete() 6. Django Admin Interface Create a superuser:

pip install gunicorn whitenoise In settings.py : python django-the practical guide

CBVs reduce code repetition significantly. blog/tests.py # Create Post