Load Template file from google storage bucket?

6 views
Skip to first unread message

Angel Manzur

unread,
Aug 11, 2019, 5:02:43 PM8/11/19
to Django users
Hi all, 

Been using Django for a couple of weeks and almost have my app running. I am using a google storage bucket for my static files, that works great. 

My bucket also has some templates I want to use, how can I add that directory into my templates directories?
Should this be done in the settings.py file? Something like the code below?

Thanks


TEMPLATES = [
{
...
'DIRS': ['https://storage.googleapis.com/<Storage Bucket>/templates/'],
..
},
},
]
Reply all
Reply to author
Forward
0 new messages