3️⃣ Building models and connecting to a database
5/ add data
./manage.py shell
from ldt.apps.core.models import Contact
Contact.objects.create(name='Jon Smith', email='hello@example.com', text='Hello')
Contact.objects.all()
#learndjangotutorial#Python#DjangoTutorial#django
3️⃣ Building models and connecting to a database
1/ Create own app
#learndjangotutorial#Python#DjangoTutorial
mkdir <name>/apps
touch <name>/apps/__init__.py
cd <name>/apps
django-admin startapp core
1️⃣ Setting up a development environment
2/ Tips
#bestpractices#Python#DjangoTutorial
pyenv #Windows
//Install a specific version
pyenv install <version>
//Set specific version
pyenv global <version>
//show installed versions
pyenv versions
python -V
🐍🌐 Exciting News! Learn Django, the Python web framework, with an easy-to-follow tutorial! 🎉✨ Whether you're a beginner or an experienced developer, this guide will help you build web applications with ease. Let's get started! 🚀 #Python#DjangoTutorial
Just finished watching the 'Django Tutorial for Beginners' by Telusko(@navinreddy20) and it's a great resource for anyone looking to clear their basics on Django! Highly recommend it for those starting out with web development. #DjangoTutorial#WebDevelopment#django#Python