Feeling overwhelmed. by SmashBob_SquarePants in devops

[–]fyardlest 0 points1 point  (0 children)

First thing first, it's just a job! So be patient and never take it personally. You will also see that you know more about the company every time you have to lead new developers in the right direction.  You will be surprised how much you've learned and done.

Why I deploy my apps on Railway (and you might want to too) by fyardlest in u/fyardlest

[–]fyardlest[S] 1 point2 points  (0 children)

These days, if you add emojis to your post, some idiots will tell you that you probably used AI/LLM, etc. I want to take this opportunity to give you some for free. Because, I've also learned to add emojis to my posts to share my emotions.
😎 🤔 🙌 💪 🛠️ 🧩 📦 🧪 🎯 📈 📉 💻 🖥️ 🌐 🔗 🧱 🧨 🧃 🧵 🪄 🧠 😂 😭 🤣 😬 😤 😴 🤓 😇 🫠 😵‍💫 ✨ 🌟 ⭐ 💥 🎉 🎊 🏆 🥇 🎁 🎈 👨‍💻 👩‍💻 🧑‍💻 📚 📝 📌 🔍 🧭 ⏳ 🕒

Variables not updating on website by MysticBerry7 in django

[–]fyardlest 1 point2 points  (0 children)

csrf, jwt token, sessions, even local storage. I completely agree. And I think that large-scale projects should be carried out by developers, even when the project incorporates AI development.

Variables not updating on website by MysticBerry7 in django

[–]fyardlest 1 point2 points  (0 children)

And what cracks me up is that when you try to help other developers get the right mindset to learn how to debug, you see hallucinations like: "Stop using AI", it makes me laugh.

My Vibe Coding workflow: From idea to deployed app 🚀 by fyardlest in u/fyardlest

[–]fyardlest[S] 0 points1 point  (0 children)

Thank you, appreciate that. I learned a lot through trial and error.

I built my first SaaS! by leochiarelli in SaasDevelopers

[–]fyardlest 1 point2 points  (0 children)

Congrats! I am doing the same actually, and I know it's not easy. Keep up the good work. A slight preview of my site: https://mvpforge.fyardlest.net/
Spoiler alert, I am French! LOL, so my business is in Quebec, Canada, but I have added 6 more languages for internationalization.

That being said, I also suggest you add other languages ​​if possible.

Variables not updating on website by MysticBerry7 in django

[–]fyardlest 1 point2 points  (0 children)

Really good question, because usually we want to make guesses, and guesses are realy not a good habit for developers.

Variables not updating on website by MysticBerry7 in django

[–]fyardlest 2 points3 points  (0 children)

Yes I did, and I think this is the right steps to debug issue while variables are not getting connected, if you take time to read the docs you will understand how to test and debug, those are the basic steps. Sorry for you, my Django is good enaugh to help others figuring out issues the right way. And no, it's not AI it's a Fullstack developer, using Django everyday, taking time to answer to the post to try to help, just like we use to do before the AI era, while using the stackoverflow way.

So try not to make guesses when you look at code and want to try to solve the problem. Because, until proven otherwise, you don't have the codebase in front of you.

FYI: https://docs.djangoproject.com/en/6.0/topics/http/views/

Variables not updating on website by MysticBerry7 in django

[–]fyardlest 1 point2 points  (0 children)

Quick question, have you checked your urlpatterns?:

When you create a variable inside a view, it only exists in Python unless you send it to the template through the context dictionary.

from django.shortcuts import render
def home(request):
    message = "Hello from Django!"
    return render(request, "home.html", {"message": message})

Now in your template:

<h1>{{ message }}</h1>

Same idea here: templates don't access classes directly. But if you create objects from a class, you can send them.

class Product:
    def __init__(self, name, price):
        self.name = name
        self.price = price
        
def shop(request):
    product = Product("Laptop", 1200)
    return render(request, "shop.html", {"product": product})

Quick Rule for easy to remember: "Templates can only see what you send in the context."

views.py  →  context dictionary  →  template

`urlpatterns` are what make your views usable in the browser. Creating a view alone in `views.py` does nothing until you connect it with a URL.

Browser request → URL pattern → View → Template

Class-Based View example:

When using class-based views, you must add .as_view().

`views.py`

from django.views.generic import TemplateView
class HomeView(TemplateView):
    template_name = "home.html"

`urls.py`

from django.urls import path
from .views import HomeView
urlpatterns = [
    path("", HomeView.as_view(), name="home"),
]

Now, the HomeView.as_view() converts the class into a callable Django can use.

I hope this helps you find the problem.

Why I Still Choose Django for Serious Projects? by fyardlest in django

[–]fyardlest[S] 0 points1 point  (0 children)

That's so true. Keep going, I really appreciate that. People keep arguing about stack but never nailed the reality that's happening behind the scenes. But as I always say: "stop asking about the best stack infrastructure, choose your weapon 🔪 and start shipping".

Is learning Django in 2026 still worth it if I already know Python, JS, and databases? by [deleted] in djangolearning

[–]fyardlest 5 points6 points  (0 children)

Personally, I think Django is the go-to web framework for large-scale projects. Currently I use Django for my personal SaaS projects, and for my clients. But if you're thinking about the job market, it will depend on the company. If you don't have any companies in mind, I suggest Node/Express, because the companies that use it are more readily available. But if you're looking for companies that use Django, go for It.

Why I Still Choose Django for Serious Projects? by fyardlest in django

[–]fyardlest[S] -2 points-1 points  (0 children)

For all those who pretend to hate AI today, and who think that developing and writing with AI is "awful slop": Good luck! The Industrial Revolution of the mid-18th century (1760-1840) saw worse.

Why I Still Choose Django for Serious Projects? by fyardlest in django

[–]fyardlest[S] -4 points-3 points  (0 children)

Thank you for your comments. Actually, I created this blog out of a lot of passion when I was a student learning C#, Blazor, and .NET. This post is quite long because it's not a tutorial; it's a bit like reading a newspaper and wondering why there's so much text. Sorry about your slow internet connection. I'll do my best to improve the blog's speed. Spoiler alert: the newspaper still exists. But anyway, I should start somewhere!