
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 new Django app named projects inside a portfolio project, register it in settings, and run the development server to see the app in action.
Register the projects app inside the settings API by installing the app in the application definition, then refresh to verify changes and update the homepage to a HelloWallet page.
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.
Migrate your role models to the database by choosing from PostgreSQL, MySQL, Oracle, and Eskil Life, then adjust the default engine in settings.
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.
Learn to run the server, create a Django superuser, and log into the admin dashboard to manage users.
Learn to add the project model to the Django admin by importing from models, registering with admin.site, and managing projects via a ModelAdmin to add new entries.
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.
Explore how to add a search field and filters in Django admin to quickly locate projects by title or description, and extend filters to date and time for large portfolios.
Set up views to fetch project data from Django models and render them on the home page template, so front-end displays all projects created in the database.
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.
Integrate Bootstrap 5 into a Django project to style a portfolio page, replacing basic markup with Bootstrap templates, and wire up static CSS and JavaScript assets.
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.
Display a profile image on the home page by loading static files in Django, using an img tag for profile.jpg, and sizing with bootstrap's rounded-circle and mb-3 spacing.
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.
Display dynamic project cards from the database by looping through items, render each title in Bootstrap cards, and verify multiple cards appear after refreshing.
Discover how to display project images in a django 4 portfolio by switching from static to media, configuring media root and url, and updating templates to render uploaded images.
Implement a Django detail view to fetch a single project by its id, render a dedicated project detail page, and handle missing objects with an error response.
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.
Customize the Django 4 portfolio's project details page with Bootstrap 5, refining the UI, displaying the title, image, and description, and adding a back-to-home link.
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!