
Build a Django 4 portfolio site with Bootstrap 5, enabling you to manage projects, customize profile pictures and names, add descriptions, and preview the site via the admin panel.
Details on how to use the Exercise files.
Prepare by installing Biton, ensuring Python 3, and mastering HTML, CSS, and Bootstrap; use templates with a code editor like Visual Studio Code for Django 4 projects.
Set up a Django 4 project by creating and activating a virtual environment, installing Django, starting a project with django-admin startproject, and running the development server to view Django page.
Explore the default Django project structure, including the database file and manage.py, then open the project root to configure settings.py for media rules, location, installed apps, and routing.
Create a Django homepage by adding a templates folder, a home.html with hello world, implement a home view returning render(request, 'home.html'), and map a URL to access the home page.
Create an about page in Django 4 portfolio project by adding an about.html template and view, wiring the URL, and organizing templates into a project folder to render at /about.
Create a Django model named project with a title char field (max_length 250), a project_image image field uploading to the images folder, and a description text field.
Learn how to create and apply django migrations after adding a new model, using makemigrations, show_migrations, and migrate, and verify 0001_initial is applied.
Add projects to the database using the admin panel, entering titles, text, and images with uploads sourced from the project images folder.
Improve Django admin by displaying the project title. Add a model method to return the title, update models.py, and enable filters in the admin.
Display all projects from the database using Django templates and a for loop to render data on the front end. Edit and add projects in admin, then refresh.
Customize a bootstrap-based portfolio by trimming the Booza template: remove header, extra cards, and photo, rename the title, and add a mailto contact button; prepare for dynamic database cards.
Add a static image in Django by creating a static folder, configuring STATIC_URL and STATIC_ROOT in settings, and loading the image with Django's static helper.
Run the collectstatic command to gather all static assets from your Django apps into a single folder, including images, admin assets, and fonts, for template use.
Learn to add static css and js for a Django project by downloading Bootstrap 5, placing files in the static directory, and serving assets offline.
Update urls.py to add a detail route for a single project, linking the project id to the detail view, and ensure the detail template displays the project using Bootstrap styling.
Turn each project card into a clickable link that navigates to its detail page using the project id, wiring up the URL and dynamic routing.
Hey guys, welcome to "Django 4 - Build Portfolio Project with Bootstrap 5 (2024)" – the ultimate course to unleash your web development potential! Are you ready to create a stunning portfolio project using Django 4 and Bootstrap 5? Join me on this exciting journey as we dive into the world of web development and transform your coding skills into a masterpiece.
In this hands-on course, we'll start by setting up Django 4 and organizing our project folder structure. With every step, you'll gain confidence as we dive into creating a new app and registering it in Django. From there, we'll build the foundation by crafting the captivating home page and informative about page, showcasing your unique style and creativity.
But that's just the beginning! We'll move on to creating project models and selecting the perfect database for our Django project. With Django migrations, you'll learn how to manage and evolve your database schema effortlessly. And let's not forget about the crucial superuser creation – you'll have complete control over your project.
Next, we'll enhance the administration of your projects by adding them to Django Admin. With titles and filters, you'll have a polished and intuitive interface to manage your projects effortlessly. But we won't stop there. It's time to shift our focus to the front-end and learn how to set up views, display data with Django templates, and seamlessly integrate Bootstrap 5 to create stunning and responsive web pages.
We'll add static images, collect them, and even display your profile image on the front page. With static CSS and JS files, you'll have the power to customize and tailor your project to perfection. Our cards will showcase project titles directly from the database, grabbing attention with elegance. And when it comes to displaying project images, we'll ensure they shine, leaving a lasting impression on your visitors.
But we won't stop until we've covered it all. We'll update views and URLs for single project display, customizing the project details page to captivate your audience. And finally, we'll finish the project with seamless navigation, linking it all together for a seamless user experience.
By the end of this course, you'll possess the skills and confidence to build a portfolio project that will impress potential clients and employers alike. So why wait? Enroll now and unlock the power of Django 4 and Bootstrap 5. Together, we'll dive in a thrilling web development journey that will shape your future success.
Let's bring your dreams to life – one line of code at a time!