Introduction
Previous article lo manam Django ante enti ani chusam.
Ipudu manam practical ga Django project create ela cheyyalo nerchukundam.
Ee guide beginner ki kuda easy ga ardham ayyela untundi π
π§° Requirements
Start cheyyadaniki mundu:
Python install ayyi undali
Internet connection undali
π Step 1: Django Install Cheyyadam
Command prompt open cheyandi:
pip install django
Install ayindho ledo check cheyyadaniki:
django-admin --version
π Step 2: New Project Create Cheyyadam
Command run cheyandi:
django-admin startproject myproject
π Idi myproject ane folder create chestundi
π Project Structure
Create ayina folder lo files ila untayi:
manage.py
myproject/
init.py
settings.py
urls.py
asgi.py
wsgi.py
π settings.py → project settings
π urls.py → URL routing
▶️ Step 3: Project Run Cheyyadam
First project folder lo ki vellandi:
cd myproject
Server run cheyyandi:
python manage.py runserver
π Step 4: Browser lo Open Cheyyandi
Browser open chesi:
Open chesthe Django welcome page kanipisthundi π
π§© Step 5: App Create Cheyyadam
Project lo app create cheyyadaniki:
python manage.py startapp myapp
π App ante:
Small module (like blog, users, etc.)
⚙️ Step 6: App ni Register Cheyyadam
settings.py open cheyandi
INSTALLED_APPS lo add cheyandi:
'myapp',
π‘ Tips
Project = full application
App = small part of project
Multiple apps okati project lo untayi
π₯ Common Errors
Python install lekapovadam
Command wrong folder lo run cheyyadam
Django install kakapovadam
✅ Conclusion
Meeru ippudu successful ga Django project create chesaru π
Next step:
π Views & URLs ela panichestayo nerchukundam
π Next Article
π Django Views & URLs (Complete Guide Telugu)
Stay tuned π₯
Comments
Post a Comment