I am new to web designer and I am trying to create a project to create a Restful web api and website. I use the Django framework and the following tutos, I always see html files as static and different views displaying an html template. This way of doing it seems to me that the backend and interface are not separate. Is it possible for the backend to be developed only in Django?
change
I actually have a more specific problem. I have this application (records) with the "patient_list" view using the Response class from the REST environment, which displays some data and an html template as follows:
def patient_list(request):
"""
List all records, or create a new .
"""
if request.method == 'GET':
data= Patient.objects.all()
return Response({'patients': data}, template_name='records.html')
in my urls.py I have:
url(r'^records/$', views.patient_list),
. , /records, _ html-. , ( , ), restful API , "frontend" (html- ). ? , Response html-?