As a novice web developer, you’ve built your portfolio app and shared your code on GitHub. Perhaps, you’re hoping to attract technical recruiters to land your first programming job. Many coding bootcamp graduates are likely doing the same thing. To differentiate yourself from the crowd and boost your chances of getting noticed, you can start hosting your Django project online.
For a hobby Django project, you’ll want a hosting service that’s free of charge, quick to set up, user-friendly, and well-integrated with your existing technology stack. While GitHub Pages is perfect for hosting static websites and websites with JavaScript, you’ll need a web server to run your Flask or Django project.
There are a few major cloud platform providers operating in different models, but you’re going to explore Heroku in this course. It ticks all the boxes—it’s free, quick to set up, user-friendly, and well-integrated with Django—and is the favorite cloud platform provider of many startups.
In this course, you’ll learn how to:
- Sign up for a free Heroku account
- Use the Heroku CLI (command-line interface)
- Bootstrap a minimal Django project
- Integrate Git with Heroku
- Connect to Heroku’s PostgreSQL database
- Manage configuration, make new releases and rollbacks
jeffli336 on Jan. 1, 2022
I ran into one issue to deploy static image files on Heroku. The error shown in application logs is HTTP 404, file not found:
In
setting.py
file we have the following settings: (I am following the guide based on this link devcenter.heroku.com/articles/django-assets)In template HTML file:
The images files are stored in the following folders:
Could you shed some lights where could be the issue?