Environment-based Settings in Django Projects | django-environ | Setup for local/production/testing

Поділитися
Вставка
  • Опубліковано 26 січ 2025

КОМЕНТАРІ • 43

  • @nicenaija9952
    @nicenaija9952 9 місяців тому +10

    You make me a better developer!!! Thank you. Looking forward to a Celery, Huey, Dramatiq tutorial. Your django-webpack series is top notch!!

    • @bugbytes3923
      @bugbytes3923  9 місяців тому +1

      Thanks a lot, appreciate it!
      Celery + Huey will be coming up soon!

  • @hamrabadi
    @hamrabadi 8 місяців тому +1

    I truly believe your videos are the best in UA-cam for Django Intermediate level and above. thank you sooo much :)👌

  • @avvie9662
    @avvie9662 9 місяців тому

    great video, love seeing how to use best practices for production!

  • @juancamilogallegogarcia2758
    @juancamilogallegogarcia2758 4 місяці тому +1

    Just one thing to say. THANKS!

  • @MrValVet
    @MrValVet 7 місяців тому +1

    Thanks a bunch for this. It would be great to see how the deployment process looks like with dev and production and how the further development process is. For example if you want to add a new feature, what are the steps you take.

  • @jonl316
    @jonl316 9 місяців тому

    Thanks so much, I've been looking for a good tutorial of this.

    • @bugbytes3923
      @bugbytes3923  9 місяців тому

      Thanks for the comment, hope the video was useful!

  • @mediatester9440
    @mediatester9440 9 місяців тому +1

    Thanks for explaining in easy way
    please create a video for deployment with docker as well

  • @lfc5times130
    @lfc5times130 9 місяців тому

    The env file in Django is crucial. It holds sensitive information like API keys and database credentials, ensuring security while allowing for easy configuration. Thank you.

  • @amine63404
    @amine63404 9 місяців тому +1

    Very interesting, thank you.

  • @kushalpy
    @kushalpy 9 місяців тому

    Great big brother

  • @sachingaikwad123
    @sachingaikwad123 6 місяців тому

    Why did you move BASE_DIR setting to .env file? Can you please explain?

  • @AmoahDevLabs
    @AmoahDevLabs 9 місяців тому

    Thanks for sharing.

  • @sachingaikwad123
    @sachingaikwad123 6 місяців тому

    Why do we have DJANGO_SETTINGS_MODULE in .env file?
    I thought purpose of this is so that we can change here value from 'local' to 'production' and then simply run 'python manage.py runsever'. But for me, it did not change to 'production', it continued running 'local' settings. Is it somehow ignore .env value and just taking 'default' set in manage.py?

  • @TahirZaqout
    @TahirZaqout 9 місяців тому

    thanks 🥰
    what about use django-oscar or saleor ?

    • @bugbytes3923
      @bugbytes3923  9 місяців тому +1

      Would love to do some content on those! Hopefully in the future!

  • @aashayamballi
    @aashayamballi 9 місяців тому

    Thank you!

  • @aryaappajimandarapu782
    @aryaappajimandarapu782 6 місяців тому

    Sir I have a doubt if we are able to fetch data from .env why can't we read the values from it based on the environment. I don't understand clearly what is the purpose of creating separate settings file for every environment. As far my understanding I described above single settings file with the combination of env file is enough right? Please clarify my doubt.

  • @mohammadadeeb4191
    @mohammadadeeb4191 9 місяців тому

    Bro you always teach something new . But bro would you make django rest framework playlist.
    Thanks

  • @HyperLinguist-AI
    @HyperLinguist-AI Місяць тому

    More or less I followed what you did, but, can anyone explain how do we in practice use that configuration when we want to push it to github and then to our server? I actually understand nothing after this configuration. Why can't I simply ignore everything on this video and once I have finished developing I make the last important changes in the files like debug = False, and allowed_hosts to the IP and cname of my website. Can anyone give a hint?

  • @IqbalArain-io3du
    @IqbalArain-io3du 9 місяців тому

    Hi BugBytes, For how long have you been Django'ing?

  • @alexdin1565
    @alexdin1565 9 місяців тому +3

    please you said you will make a playlist about django channels tutorial
    are you still planing to do it or not?

    • @bugbytes3923
      @bugbytes3923  9 місяців тому

      Definitely planning it but will not be for a few months at least.

  • @WebsiteInnovator
    @WebsiteInnovator 19 днів тому

    Should i be using multiple apps in a project?

  • @recaia
    @recaia 9 місяців тому

    I liked the method of making Django Ninja Extra, but I feel frustrated that there are not more videos to learn this technique, as I found that it is somewhat different from Django Ninja, and I want to make a large High Performance project, but there are no sources. Can you explain what combinations of Django Ninja Extra projects will be large projects? Like Tik Tok or Amazon?

  • @Yarkanlaki
    @Yarkanlaki 9 місяців тому

    🙏 thanks

  • @LêTrungVũHà
    @LêTrungVũHà 9 місяців тому

    thank you

  • @frameff9073
    @frameff9073 9 місяців тому +1

    thank

  • @repotranstech
    @repotranstech 9 місяців тому

    Do a tutorial on django-sonar.

  • @Jakub1989YTb
    @Jakub1989YTb 9 місяців тому

    When importing the stars to the base settings, your best luck is to hope you are not shadowing any variables names.

    • @DhavalAhir10
      @DhavalAhir10 9 місяців тому

      It doesn't matter.
      You should always inherit everything from base import *.
      When you are using dev settings vs production settings

  • @homestead_freak
    @homestead_freak Місяць тому

    I find this horribly convoluted and complicated