Courses

Learn Django

13 lessons ยท 0 completed

Start
0%
  1. 1 Welcome to Django: Setup and First Steps ๐Ÿš€ The "Why" Before the "How": Why Choose Django?Setting up the Environment: Python, Pip, and VirtualenvsYour First Django Project: `django-admin startproject`Project Structure: Understanding the Django Blueprint
  2. 2 Django's Brain: Architecture & Apps ๐Ÿง  The MVT (Model-View-Template) Pattern ExplainedProjects vs. Apps: Modularizing Your CodeCreating Your First App: `python manage.py startapp`Registering Apps and Navigating `settings.py`
  3. 3 URLs and Views: Directing Traffic ๐Ÿšฆ URL Dispatcher: Mapping Routes to ViewsFunction-Based Views (FBVs): Handling Requests & ResponsesDynamic URLs: Passing Parameters in PathsNaming URLs & The Power of the `reverse` Function
  4. 4 Templates: Making It Look Good ๐ŸŽจ Django Template Language (DTL): Variables & TagsTemplate Inheritance: Don't Repeat Yourself (DRY)Passing Context: Sending Data from View to TemplateServing Static Files: Integrating CSS, JS, and Images
  5. 5 Models: Your Database Blueprint ๐Ÿ—„๏ธ Introduction to the Django ORM (Object-Relational Mapper)Defining Models: Choosing the Right FieldsMigrations: Translating Code to Database TablesThe Django Admin: Setting up the Free Out-of-the-Box Dashboard
  6. 6 Mastering the ORM: Data Manipulation ๐Ÿ” The Django Shell: Interactively Querying Your DataCRUD Operations: Create, Read, Update, DeleteFiltering and Lookups: Finding Exactly What You NeedDatabase Relationships: Foreign Keys and Many-to-Many
  7. 7 Forms: Handling User Input Safely ๐Ÿ“ HTML Forms vs. Django Forms: Why Use the Latter?Creating, Rendering, and Processing Django FormsModelForms: Magically Tying Forms Directly to ModelsValidation and Security: CSRF Protection Explained
  8. 8 Class-Based Views (CBVs): Leveling Up ๐Ÿ“ˆ The Transition: Why and When to Use Class-Based ViewsGeneric Display Views: `ListView` and `DetailView`Generic Editing Views: `CreateView`, `UpdateView`, and `DeleteView`Overriding Methods: Customizing Default CBV Behavior
  9. 9 Authentication: Securing Your App ๐Ÿ” The Built-in User Model: Registration, Login, and LogoutRestricting Access: `@login_required` and `LoginRequiredMixin`Managing Passwords and Handling Session ExpirationExtending the User Model: Adding Custom Profile Fields
  10. 10 State and Memory: Sessions & Messages ๐Ÿช Understanding the Web's StatelessnessThe Messages Framework: Flash Notifications for UsersReading, Writing, and Securing CookiesSession Management: Storing Temporary Data Behind the Scenes
  11. 11 Django REST Framework (DRF): Building APIs ๐Ÿ”Œ What is an API and Why Add DRF to Django?Serializers: Translating Complex Models to JSONFunction-Based API Views vs. Class-Based API ViewsViewSets and Routers: Automating API Endpoints
  12. 12 Testing: Bulletproofing Your App ๐Ÿ›ก๏ธ Why Write Tests? Setting Up the Django Test FrameworkTesting Models and Database IntegrityTesting Views, Context Data, and URL RoutingThe Test Client: Simulating User Interactions
  13. 13 Deployment: Going Live! ๐ŸŒ Preparing for Production: `DEBUG = False` and `ALLOWED_HOSTS`Hiding Secrets: Managing Environment Variables (`python-dotenv`)Switching Databases: Moving from SQLite to PostgreSQLServing The App: WSGI, Gunicorn, and Web Servers (Nginx)