Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 593 for Dotenv (2.4 sec)

  1. docs/de/docs/advanced/settings.md

    !!! tip "Tipp"
        Damit das funktioniert, müssen Sie `pip install python-dotenv` ausführen.
    
    ### Die `.env`-Datei
    
    Sie könnten eine `.env`-Datei haben, mit:
    
    ```bash
    ADMIN_EMAIL="******@****.***"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:17:14 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/settings.md

    !!! tip
        For this to work, you need to `pip install python-dotenv`.
    
    ### The `.env` file
    
    You could have a `.env` file with:
    
    ```bash
    ADMIN_EMAIL="******@****.***"
    APP_NAME="ChimichangApp"
    ```
    
    ### Read settings from `.env`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. docs/zh/docs/advanced/settings.md

    这种做法相当常见,有一个名称,这些环境变量通常放在一个名为 `.env` 的文件中,该文件被称为“dotenv”。
    
    !!! tip
        以点 (`.`) 开头的文件是 Unix-like 系统(如 Linux 和 macOS)中的隐藏文件。
    
        但是,dotenv 文件实际上不一定要具有确切的文件名。
    
    Pydantic 支持使用外部库从这些类型的文件中读取。您可以在<a href="https://docs.pydantic.dev/latest/concepts/pydantic_settings/#dotenv-env-support" class="external-link" target="_blank">Pydantic 设置: Dotenv (.env) 支持</a>中阅读更多相关信息。
    
    !!! tip
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/settings.md

    🖼 👆 💪 ✔️ 📁 `main.py` ⏮️:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    !!! tip
        🥈 ❌ <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> 🔢 💲 📨.
    
        🚥 🚫 🚚, ⚫️ `None` 🔢, 📥 👥 🚚 `"World"` 🔢 💲 ⚙️.
    
    ⤴️ 👆 💪 🤙 👈 🐍 📋:
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. src/cmd/dist/build.go

    	// For tools being invoked but also for os.ExpandEnv.
    	os.Setenv("GO386", go386)
    	os.Setenv("GOAMD64", goamd64)
    	os.Setenv("GOARCH", goarch)
    	os.Setenv("GOARM", goarm)
    	os.Setenv("GOARM64", goarm64)
    	os.Setenv("GOHOSTARCH", gohostarch)
    	os.Setenv("GOHOSTOS", gohostos)
    	os.Setenv("GOOS", goos)
    	os.Setenv("GOMIPS", gomips)
    	os.Setenv("GOMIPS64", gomips64)
    	os.Setenv("GOPPC64", goppc64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  6. src/runtime/cgo/setenv.go

    Ian Lance Taylor <******@****.***> 1646360615 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 597 bytes
    - Viewed (0)
  7. src/os/env.go

    // be false.
    func LookupEnv(key string) (string, bool) {
    	testlog.Getenv(key)
    	return syscall.Getenv(key)
    }
    
    // Setenv sets the value of the environment variable named by the key.
    // It returns an error, if any.
    func Setenv(key, value string) error {
    	err := syscall.Setenv(key, value)
    	if err != nil {
    		return NewSyscallError("setenv", err)
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. src/crypto/x509/root_unix_test.go

    	origFile, origDir := os.Getenv(certFileEnv), os.Getenv(certDirEnv)
    	defer func() {
    		certFiles = origCertFiles
    		certDirectories = origCertDirectories
    		os.Setenv(certFileEnv, origFile)
    		os.Setenv(certDirEnv, origDir)
    	}()
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			if err := os.Setenv(certFileEnv, tc.fileEnv); err != nil {
    				t.Fatalf("setenv %q failed: %v", certFileEnv, err)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 00:36:38 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/plan9/env_plan9.go

    // license that can be found in the LICENSE file.
    
    // Plan 9 environment variables.
    
    package plan9
    
    import (
    	"syscall"
    )
    
    func Getenv(key string) (value string, found bool) {
    	return syscall.Getenv(key)
    }
    
    func Setenv(key, value string) error {
    	return syscall.Setenv(key, value)
    }
    
    func Clearenv() {
    	syscall.Clearenv()
    }
    
    func Environ() []string {
    	return syscall.Environ()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 555 bytes
    - Viewed (0)
  10. src/internal/fuzz/mutator_test.go

    package fuzz
    
    import (
    	"bytes"
    	"fmt"
    	"os"
    	"strconv"
    	"testing"
    )
    
    func BenchmarkMutatorBytes(b *testing.B) {
    	origEnv := os.Getenv("GODEBUG")
    	defer func() { os.Setenv("GODEBUG", origEnv) }()
    	os.Setenv("GODEBUG", fmt.Sprintf("%s,fuzzseed=123", origEnv))
    	m := newMutator()
    
    	for _, size := range []int{
    		1,
    		10,
    		100,
    		1000,
    		10000,
    		100000,
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.3K bytes
    - Viewed (0)
Back to top