MCPcopy Index your code
hub / github.com/HashimThePassionate/django-for-everyone

github.com/HashimThePassionate/django-for-everyone @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
15,190 symbols 40,231 edges 1,923 files 105 documented · 1% updated 16mo ago★ 38
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Django for Everyone 💎

Welcome to Django for Everyone! 🎉 This repository is your one-stop resource for learning Django, whether you're a beginner looking to build your first web app or a professional seeking to master advanced features. Let’s dive into Django with two learning paths designed to suit your style and goals! 🌟

🛤️ Learning Paths to Master Django

We’ve split the content into two main learning paths. Choose the one that best suits your needs:

Path 1: Project-Based Learning 📚

If you love learning by doing, this is the path for you! In the Projects Directory, you'll find different project-based tracks:

👉 01_learn_django_for_beginners

  • Best for: Those just starting with Django.
  • What you'll build: A complete Blog Application from scratch.
  • Why it's awesome: You’ll learn the fundamentals of Django, including how to set up your project, manage views, templates, and user authentication, and deploy your app on Heroku.
  • Covered Topics:
  • Setting up a Django environment.
  • Creating views, templates, and forms.
  • Handling user authentication.
  • Deploying your app to Heroku.

👉 02_learn_django_for_professionals

  • Best for: Developers familiar with Django who want to build more advanced applications.
  • What you'll build: A Django-powered store with Docker and PostgreSQL.
  • Why it's awesome: This project covers advanced Django features like user permissions, Docker integration, and deployment on Heroku.
  • Covered Topics:
  • Setting up Django with Docker and PostgreSQL.
  • Advanced user registration and authentication.
  • Adding search and permissions functionalities.
  • Deploying a production-ready app on Heroku.

👉 03_django_rest_framework

  • Best for: Developers looking to build RESTful APIs with Django.
  • What you'll build: A full-featured REST API using Django and Django REST Framework (DRF).
  • Why it's awesome: You'll learn how to create, read, update, and delete resources via APIs, work with viewsets, serializers, and handle complex queries through Django's ORM.

  • Covered Topics:

  • Setting up Django REST Framework.
  • Building API endpoints for your Django models.
  • Using viewsets and routers for efficient URL routing.
  • Creating serializers to handle the conversion between Django models and JSON.
  • Implementing permissions and authentication using DRF's built-in features.
  • Deploying your Django REST API on platforms like Heroku.

Path 2: Feature-by-Feature Learning ⚙️

If you prefer learning one step at a time, mastering one concept at a time, follow our feature-by-feature path. Here, we deep dive into individual aspects of Django:

📘 01_django_fundamentals

  • What you'll learn: The very basics of setting up Django, including setting up your environment, creating views, templates, and handling static files.
  • Covered Topics:
  • Setting up your Django environment.
  • Creating and mapping views with URLs.
  • Working with templates and static files.
  • Debugging in VS Code.

📘 02_building_a_data_model

  • What you'll learn: How to build efficient and scalable data models for your Django app.
  • Covered Topics:
  • Introduction to data models.
  • Creating and organizing models in apps.
  • Defining relationships (one-to-one, one-to-many, many-to-many).
  • Handling circular relationships.

📘 03_setting_up_database

  • What you'll learn: How to set up databases for Django, with a focus on MySQL and PostgreSQL.
  • Covered Topics:
  • Supported database engines.
  • Creating migrations and customizing database schema.
  • Running custom SQL.
  • Generating dummy data for testing.

📘 04_django_orm

  • What you'll learn: Master Django's powerful ORM (Object Relational Mapper) for querying databases efficiently.
  • Covered Topics:
  • Retrieving and filtering objects.
  • Performing complex lookups using Q and F objects.
  • Sorting, limiting, and selecting fields.
  • Aggregating and analyzing data with ORM.

🎯 How to Use This Repository

  1. Project-Based Learning: If you want to learn Django by building real-world applications, head over to the Projects Directory. Start with Beginners if you're new to Django, or dive into Professionals if you're ready for more advanced challenges.
  2. Feature-by-Feature Learning: If you prefer mastering one concept at a time, begin with Django Fundamentals and progress through to Django ORM.

  3. Deploy and Test: Each project is designed to be deployable on Heroku. We provide step-by-step guides for deployment in each project’s directory.

  4. Contribute: Found an issue or want to suggest improvements? Feel free to contribute! We welcome pull requests.

If you find this repository helpful, please give it a star ⭐! Your support helps keep this project going and encourages more content to be added. 🌟

Core symbols most depended-on inside this repo

get
called by 526
projects/01_learn_django_for_beginners/15_comments/articles/views.py
e
called by 245
projects/03_django_rest_framework/05_todo_api/staticfiles/rest_framework/js/prettify-min.js
quickElement
called by 108
projects/01_learn_django_for_beginners/16_deployment/staticfiles/admin/js/core.js
toggle
called by 108
04_django_orm/10_sorting/storefront/store/static/js/bootstrap.js
close
called by 85
04_django_orm/10_sorting/storefront/store/static/js/bootstrap.js
hide
called by 64
04_django_orm/10_sorting/storefront/store/static/js/bootstrap.js
show
called by 59
04_django_orm/10_sorting/storefront/store/static/js/bootstrap.js
quickElement
called by 54
projects/03_django_rest_framework/05_todo_api/staticfiles/admin/js/core.js

Shape

Method 9,055
Function 3,890
Class 2,244
Route 1

Languages

TypeScript88%
Python12%

Modules by API surface

04_django_orm/27_assessment_resolution/storefront/store/static/js/bootstrap.js390 symbols
04_django_orm/25_expression_wrappers/storefront/store/static/js/bootstrap.js390 symbols
04_django_orm/24_grouping_data/storefront/store/static/js/bootstrap.js390 symbols
04_django_orm/23_calling_database_functios/storefront/store/static/js/bootstrap.js390 symbols
04_django_orm/22_annotating_objects/storefront/store/static/js/bootstrap.js390 symbols
04_django_orm/21_assessment_resolution/storefront/store/static/js/bootstrap.js390 symbols
04_django_orm/19_aggregating_objects/storefront/store/static/js/bootstrap.js390 symbols
04_django_orm/18_assessment_resolution/storefront/store/static/js/bootstrap.js390 symbols
04_django_orm/16_selecting_related_objects/storefront/store/static/js/bootstrap.js390 symbols
04_django_orm/15_deferiing_fields/storefront/store/static/js/bootstrap.js390 symbols
04_django_orm/14_assessment_resolution/storefront/store/static/js/bootstrap.js390 symbols
04_django_orm/12_selecting_fields_to_query/storefront/store/static/js/bootstrap.js390 symbols

Datastores touched

postgresDatabase · 1 repos
NAMEDatabase · 1 repos
d11ac0v0inabtaDatabase · 1 repos

For agents

$ claude mcp add django-for-everyone \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page