-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
application.py
58 lines (42 loc) · 1.5 KB
/
application.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
"""Application Settings."""
import os
from masonite import env
"""Application Name
This value is the name of your application. This value is used when the
framework needs to place the application's name in a notification or
any other location as required by the application or its packages.
"""
NAME = env('APP_NAME', 'Masonite 2.3')
"""Application Debug Mode
When your application is in debug mode, detailed error messages with
stack traces will be shown on every error that occurs within your
application. If disabled, a simple generic error page is shown
"""
DEBUG = env('APP_DEBUG', False)
"""Secret Key
This key is used to encrypt and decrypt various values. Out of the box
Masonite uses this key to encrypt or decrypt cookies so you can use
it to encrypt and decrypt various values using the Masonite Sign
class. Read the documentation on Encryption to find out how.
"""
KEY = env('KEY', None)
"""Application URL
Sets the root URL of the application. This is primarily used for testing
"""
URL = env('APP_URL', 'http://localhost:8000')
"""Base Directory
Sets the root path of your project
"""
BASE_DIRECTORY = os.getcwd()
"""Static Root
Set the static root of your application that you wil use to store assets
"""
STATIC_ROOT = os.path.join(BASE_DIRECTORY, 'storage')
"""Autoload Directories
List of directories that are used to find classes and autoload them into
the Service Container. This is initially used to find models and load
them in but feel free to autoload any directories
"""
AUTOLOAD = [
'app',
]