My journey learning Django - organized code, resources, and notes.
Topics: ORM, Queries, Models, Admin, Database Operations
Project: Storefront E-commerce
Status: β
Completed
Each part contains:
- storefront/ - The Django project
- course-resources/ - Original course code and database files
- notes/ - Learning notes and documentation
# Navigate to part 1
cd part-1/storefront
# Install dependencies
pip install -r requirements.txt
# Run migrations
python manage.py migrate
# Start development server
python manage.py runserver- Query optimization with
select_relatedandprefetch_related - Complex queries using Q and F objects
- Aggregation and annotation
- Generic relations
- Custom managers
- Field types and validators
- Relationship design (ForeignKey, ManyToMany, OneToOne)
on_deletebehavior- Choices pattern for dropdowns
- Meta options for ordering and indexes
- List display customization
- Computed columns
- Custom actions
- Inline editing
- Performance optimization
- Custom filters
- Python 3.x
- Django 4.x
- SQLite (development)
Notes are concept-focused with code snippets as examples - designed for learning and quick reference, not comprehensive documentation.