{"push_id":895293263,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"5d1b455cc07e0aecb3972ea7f10b90ab29cb78a3","before":"b055b07d949586ebfe9bdf92b097554ff6e55b8f","commits":[{"sha":"5d1b455cc07e0aecb3972ea7f10b90ab29cb78a3","author":{"email":"2fcd83b44eff1664f35fc9ee2b0a45a215c70bc4@gmail.com","name":"Shanrui Yong"},"message":"Write views that actually do something\n\nEach view is responsible for doing one of two things: returning an HttpResponse object containing the content for the requested page, or raising an exception such as Http404.\n\nThere’s a problem here, though: the page’s design is hard-coded in the view. If you want to change the way the page looks, you’ll have to edit this Python code. So let’s use Django’s template system to separate the design from Python by creating a template that the view can use.\n\nFirst, create a directory called templates in your polls directory. Django will look for templates in there.\n\nYour project’s TEMPLATES setting describes how Django will load and render templates. The default settings file configures a DjangoTemplates backend whose APP_DIRS option is set to True. By convention DjangoTemplates looks for a “templates” subdirectory in each of the INSTALLED_APPS.\n\nWithin the templates directory you have just created, create another directory called polls, and within that create a file called index.html. In other words, your template should be at polls/templates/polls/index.html. Because of how the app_directories template loader works as described above, you can refer to this template within Django simply as polls/index.html.\n\nReported-by:Shanrui Yong\nSigned-off-by: Shanrui Yong <shanrui.yong001@umb.edu>","distinct":true,"url":"https://api.github.com/repos/shanrui0304/Assignment/commits/5d1b455cc07e0aecb3972ea7f10b90ab29cb78a3"}]}