Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Build Car Dealer website in Django 3.0
Rating: 4.3 out of 5(21 ratings)
104 students

Build Car Dealer website in Django 3.0

Build functionalities with Django on HTML theme
Created byIvana Usorac
Last updated 7/2020
English
English [Auto],

What you'll learn

  • How to install,create and activate virtual environment
  • How to create Django project
  • How to create Django app
  • How to connect HTML template with Django backend
  • How to build filter form
  • How to add pagination
  • How to paginate filtered results
  • How to embed google maps
  • How to build working contact form

Course content

1 section • 25 lectures • 3h 50m total length
  • Introduction4:52

    This introduction guides you through downloading a car dealer website theme, unzipping assets, and starting the Django backend to store cars, build a functional filtering form, and display listings.

  • Setup project9:48
  • Connect static9:27

    Set up a Django 3.0 car dealer site by installing Django and Pillow, creating cars and dealers apps, building an index view and template, and wiring static assets.

  • Customize home page17:09

    Customize the home page by refining navigation, updating the logo, and removing unused sections, while connecting static assets and embedding a Google map.

  • Create base template9:10

    Create a reusable base template in Django 3.0 by building base.html, loading static assets, and defining navigation, content blocks, footer, and scripts for all pages.

  • About us page6:56

    Build an about us page in a Django 3.0 car dealer site by extending the base template, creating an about view, wiring the URL, and a team section.

  • Create models21:40

    Create car and dealer models in a Django 3.0 app, with brand, category, images, miles, transmission, year, price, and a dealer foreign key, then migrate and register in admin.

  • Show models12:56

    Create dealer profiles and car models in a Django 3.0 app, upload images from assets, categorize cars as new or used, and render them on the home page with loops.

  • Customize models8:23

    Customize the car model display by wiring image sources, categories, price, transmission, year, and miles, and iterate between new and used cars to build listings with a detail view.

  • Slider6:04

    Implement a slider that shows the latest cars by date, add a date field with migrations, and display the top five newest cars with brand and price.

  • Customize slider4:10

    Customize the car slider by updating images and showing brand, category, and price with a dollar sign. Use admin date edits to keep the slider current and enable detail viewing.

  • Filter form9:20

    Set up a filter form for the car catalog using django-filter, create a car filter with fields like brand, year, transmission, and price, and render results in the view.

  • Customize form13:01

    Customize a car search form by configuring Django underscore filters, building a form with method get, including brand, category, year, and price fields, and styling the submit button using Bootstrap.

  • Show form results7:44
  • Customize form results4:20
  • Absolute url12:23

    Define a get_absolute_url on the car model to return absolute url and use reverse to link to the car detail page, updating templates for seamless navigation from listings to details.

  • Customize detail page10:55
  • Customizing detail page finished2:38
  • Pagination6:55

    Add pagination to filtered car results using Django 3.0, configuring page requests, per-page items, and a page object to navigate results without resetting forms.

  • Pagination second part10:33

    Implement persistent pagination in a Django 3.0 car dealer app by creating a custom template tag and loading it in filter results to preserve query parameters.

  • Inventory page8:37
  • Dealers page10:17

    Create a dedicated dealers page in Django by importing the dealer model, querying all dealers, and rendering them with a loop and a template to display names and emails.

  • Contact page11:29

    Define the contact view, add a path, render the contact template with context, connect static files, and build a form with name, email, and message to send emails.

  • Contact page functions11:31

    Create a Django 3.0 contact page with a post form, CSRF protection, and fields for name, email, and message; configure Gmail SMTP to send the message.

  • Outro0:36

    Launch the fully functional car dealer website by showing models, creating tables and sliders, building a filter form and contact form, integrating Google Maps, and adding pagination for filter results.

Requirements

  • Basic Django knowledge
  • Linux system

Description

In this course you will learn how to build website for car dealer in Django from scratch, how to create and show models, how to use django-filters to filter models, how to add pagination on filtered results, how to build working contact form and embedd google maps on your website.

Who this course is for:

  • Intermediate Django developers, who knows basics and want to build something real world