Top Tweets for #learndjangotutorial
4️⃣ Designing URLs and views
4/ test your new view
Run server
./manage.py runserver 10000
visit http://127.0.0.1:10000/
You should see the following output
#learndjangotutorial #Python #DjangoTutorial #SoftwareEngineering #SoftwareDevelopment

4️⃣ Designing URLs and views
1/ create a simple view
open file ldt/apps/core/views.py
#learndjangotutorial #Python #DjangoTutorial #SoftwareEngineering #SoftwareDevelopment

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='[email protected]', text='Hello')
Contact.objects.all()
#learndjangotutorial #Python #DjangoTutorial #django

3️⃣ Building models and connecting to a database
4/ create migration and migrate
Make sure you are in the root directory where the file https://t.co/6Zv7cX1mjk is.
./manage.py makemigrations
./manage.py migrate
#learndjangotutorial #Python #DjangoTutorial #SoftwareDevelopment

3️⃣ Building models and connecting to a database
3/ define your model
go to ldt/apps/core/models.py
#learndjangotutorial #Python #DjangoTutorial #SoftwareEngineering #SoftwareDevelopment

3️⃣ Building models and connecting to a database
2/ add your app
In your https://t.co/NrulIw0HaI add 'ldt.apps.core'
and in apps/core/apps.py
change name to 'ldt.apps.core'
#learndjangotutorial #Python #DjangoTutorial #SoftwareEngineering #SoftwareDevelopment

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

2️⃣ Creating a Django project
#learndjangotutorial #Python #DjangoTutorial
1/
//install most recent version of django
pip install django
django-admin createproject <name>
change into <name>
//Run
python https://t.co/6Zv7cX1mjk migrate
python https://t.co/6Zv7cX1mjk runserver
↓

1️⃣ Setting up a development environment
3/Virtual environment
#learndjangotutorial #Python #DjangoTutorial
python3.xx -m venv <env_name>
python3.11 -m venv <env_name>
#Windows
env_name/Scripts/activate.bat
#Linux/#Mac
source env_name/bin/activate
pip install django
1️⃣ Setting up a development environment
1/
#learndjangotutorial #Python #DjangoTutorial
Download recent version of python on https://t.co/Qoq24nZMJH
🎁 Additionally, we'll be sharing useful tips, best practices, and resources throughout the tutorial to help you become a Django pro in no time. 🎓
🙌 Join the #learndjangotutorial community! Share your progress, ask questions, and connect with fellow learners.
Most Popular Users

Elon Musk 
@elonmusk
239.3M followers

Barack Obama 
@barackobama
118.5M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.6M followers

X 
@x
60.6M followers

