DEV Community

stackbento
stackbento

Posted on

Day 15 Django Learning : Deploy

๐Ÿš€ Django Learning Journey โ€“ Day 15

๐ŸŽ‰ My first ever Django project is officially LIVE on the internet!
Today feels incredibly special โ€” the anxiety, the errors, the retriesโ€ฆ everything was worth it.

๐Ÿ› ๏ธ Fixing โ€œDisallowedHostโ€ & Diving Into Deployment

The day started with the intimidating โ€œDisallowedHost at /โ€ error.
But that error pushed me into learning so much more:

๐Ÿง  What โ€œhostsโ€ actually mean in Django

๐ŸŒฑ Why production environments care about allowed URLs

๐Ÿ” And how environment variables work in real-world apps

Thatโ€™s when I discovered python-dotenv.
Installed it โ†’ created my .env โ†’ moved sensitive settings inside it.
A small step, but a big leap in understanding real project structure.

๐Ÿ“ฆ Preparing for Deployment

One of the biggest takeaways today:

pip freeze > requirements.txt

This single command saved me from dependency nightmares during deployment.

To make things clean & reliable:

Reinstalled gunicorn

Added whitenoise to serve static files

Updated settings.py (yesโ€ฆ I left an extra comma at the end initially ๐Ÿ˜…)

Created a proper Procfile โ†’ web: gunicorn todo_app.wsgi

Then pushed everything to GitHub โ†’ cleared the build cache โ†’ clicked deploy.

๐ŸŒ The AWE moment

When Render said โ€œBuild Successfulโ€, my heart was racing.
Clicked the linkโ€ฆ
And there it was โ€” MY app. Live. On the actual internet.

To double-check, I asked a friend to test.
He posted โ€œAtunโ€ just to troll me ๐Ÿ˜‚
And the app worked flawlessly.

This feeling?
Inexplicable. Unreal. Motivating.
Exactly the kind of moment that makes all the struggles worth it.

๐Ÿ“ Looking Back: 15 Days of Learning

14 days ago, deployment felt far away.
I even planned for 14 daysโ€ฆ but finished on Day 15.
Not bad for a first project โ€” and a journey full of:

Errors

Debugging

Rethinking

Googling

Trying again

And again

I documented the journey not just to share successes, but to show the struggles too.
If even one learner finds courage from this โ€” Iโ€™ll be happy.

๐Ÿ” Next Stop: Authentication + User Dashboards

For my second project, Iโ€™ll build:

User authentication

Individual user dashboards

Better UI/UX

New logic

Cleaner, more scalable structure

This journey has only begun. Django is deep, powerful, and exciting.

๐Ÿ’ฌ Tell me your story!

What was your reaction when you first saw your project live?
Did you scream? Celebrate? Panic? Refresh your browser 20 times like me? ๐Ÿ˜„
Would love to hear it in the comments.

โค๏ธ Thank You

To everyone supporting, encouraging, and guiding me โ€” thank you.
Stay tuned โ€” Iโ€™m soon sharing a full list of all commands I used, from start โ†’ deployment. Might help someone out there.

Django #Render #WebDevelopment #Python #DeployYourApp #LearningInPublic #100DaysOfCode #BeginnerDev #FullStackJourney

repository available at : https://github.com/stackbento/Django-To-Do-List

Top comments (0)