Skip to content

justengel-web/justengel_srv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

justengel_srv

justengel.com server

Run with

./run.sh

This site uses pydantic BaseSettings with a .env config file.

from pydantic import BaseSettings

__all__ = ['settings']

class Settings(BaseSettings):
    """This settings object will load environment variables or variables in the cwd .env file."""
    SECRET: str = "Insert SECRET KEY HERE!!!!"
    HTTPS_ONLY = True
    RUN_OCR = False
    RUN_CRUD = False
    #DATABASE_URL: str = 'sqlite:///./test.db'
    # DATABASE_URL: str = 'postgresql://user:password@postgresserver/db'

    class Config:
        env_file = ".env"
        env_file_encoding = 'utf-8'

settings = Settings()

Settings may change or may not be needed

Packages

No packages published

Languages

  • HTML 53.5%
  • Python 46.3%
  • Other 0.2%