-
Notifications
You must be signed in to change notification settings - Fork 0
Static Files
jefmud edited this page Sep 6, 2022
·
1 revision
You will eventually want to serve up some static files. Minimus, by default, serves these out of the 'static' folder. You can change this when you instantiate the application class.
As mentioned, by default, it serves out of 'static'
app = Minimus(__name__)
Suppose you wanted to serve it out of "assets", you could do that.
app = Minimus(__name__, static_dir="assets")
You can serve up CSS, JavaScript, etc. out of this folder (and relative subfolders).