<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Dotenv on 每日拍拍</title>
    <link>https://dailypypy.org/tags/dotenv/</link>
    <description>Recent content in Dotenv on 每日拍拍</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-tw</language>
    <copyright>© 2026 每日拍拍</copyright>
    <lastBuildDate>Sun, 31 May 2026 10:49:00 +0800</lastBuildDate><atom:link href="https://dailypypy.org/tags/dotenv/index.xml" rel="self" type="application/rss+xml" />
    <follow_challenge>
      <feedId>155076163427069952</feedId>
      <userId>154825760438254592</userId>
    </follow_challenge>
    
    
    <item>
      <title>Python dotenv 實戰：安全管理 .env、環境變數與部署設定</title>
      <link>https://dailypypy.org/learn/py-dotenv/</link>
      <pubDate>Sun, 31 May 2026 10:49:00 +0800</pubDate>
      
      <guid>https://dailypypy.org/learn/py-dotenv/</guid>
      <description>&lt;!---
1024x620
prompt: masterpiece, best quality, highres, clean anime illustration, japanese anime style, soft shading, flat color design, 1girl, black hair, green eyes, white off-shoulder shirt, black short skirt, bust shot, holding a small key charm, serious focused look, looking at viewer, pale sage green background, neat composition, detailed eyes, cute and smart vibe, minimal background, polished illustration, no text
negative prompt: worst quality, bad eye, bad hand, extra limbs, manga, multiple views, monochrome, text, signature
dedup note: 2026-05-31 weekly plan asked for an in-place py_dotenv SEO refresh. Closest existing posts are python-pydantic-settings and streamlit-deploy-secrets; this refresh stays on plain python-dotenv loading, override rules, minimal validation, and deployment caveats instead of typed Settings models or Streamlit secrets.
---&gt;

&lt;h2 class=&#34;relative group&#34;&gt;一. 前言：秘密不要寫死，設定也不要散落各地 
    &lt;div id=&#34;一-前言秘密不要寫死設定也不要散落各地&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
            style=&#34;text-decoration-line: none !important;&#34; href=&#34;#%e4%b8%80-%e5%89%8d%e8%a8%80%e7%a7%98%e5%af%86%e4%b8%8d%e8%a6%81%e5%af%ab%e6%ad%bb%e8%a8%ad%e5%ae%9a%e4%b9%9f%e4%b8%8d%e8%a6%81%e6%95%a3%e8%90%bd%e5%90%84%e5%9c%b0&#34; aria-label=&#34;定位點&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;拍拍君先講結論：如果你的 Python 專案有 API key、資料庫網址、外部服務 token、部署環境差異，請不要把它們直接寫進程式碼。 你可能看過這種寫法：&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://dailypypy.org/learn/py-dotenv/featured.png" />
    </item>
    
    <item>
      <title>Python pydantic-settings 實戰：型別安全管理 .env 與設定檔</title>
      <link>https://dailypypy.org/learn/python-pydantic-settings/</link>
      <pubDate>Wed, 20 May 2026 12:10:00 +0800</pubDate>
      
      <guid>https://dailypypy.org/learn/python-pydantic-settings/</guid>
      <description>&lt;!---
1440x768
prompt: masterpiece, best quality, highres, clean anime illustration, japanese anime style, soft shading, flat color design, 1girl, black hair, green eyes, white off-shoulder shirt, black short skirt, from above, pointing upward, confident smile, looking at viewer, light mint background, subtle floating configuration panels and small gear shapes without text, neat composition, detailed eyes, cute and smart vibe, minimal background, polished illustration, no text
negative prompt: worst quality, bad eye, bad hand, extra limbs, manga, multiple views, monochrome, text, signature
dedup note: This is a specific follow-up to ../python-pydantic/, ../py_dotenv/, and ../python-tomllib/. The older posts cover data validation basics, simple .env loading, and TOML parsing; this post focuses on application settings as typed runtime configuration, environment precedence, nested env variables, validation, and deployment-friendly Settings design.
---&gt;
&lt;p&gt;





&lt;figure&gt;
    &lt;img class=&#34;my-0 rounded-md&#34; loading=&#34;lazy&#34; alt=&#34;featured&#34; src=&#34;./featured.png&#34; /&gt;

  
&lt;/figure&gt;
&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://dailypypy.org/learn/python-pydantic-settings/featured.png" />
    </item>
    
  </channel>
</rss>
