I have a simple view which renders an HTML template. No variables whatsoever and no database queries. However, my TTFB is still 665ms.
Here is code for the view:
def test_page(request):
return render(request, 'home/test_page.html')
The template home/test_page.html
is a 12.5 KB file.
I'm using an Amazon EC2 instance (t2.medium) deployed with Elastic Beanstalk. Django version 1.8 using python 3.4.
Since I'm using Elastic-Beanstalk, The configuration of the server is done by AWS.
An interesting observation is that a smaller file such as a 4.1 KB file gives me a TTFB of 145ms.