Django. Templates Working Local But Not On Pythonanywhere.com
I have a working project in django when I run it local but not when I run it on pythonanywhere.com. I get error TemplateDoesNotExist. How do I make it run on pythonanywhere.com? Do
Solution 1:
You shouldn't use the relative directory 'templates'
in your TEMPLATES
setting. Try changing DIRS
to:
'DIRS': [os.path.join(BASE_DIR, 'templates')],
Post a Comment for "Django. Templates Working Local But Not On Pythonanywhere.com"