{"id":28766,"date":"2023-01-13T12:40:45","date_gmt":"2023-01-13T20:40:45","guid":{"rendered":"https:\/\/coderpad.io\/?p=28766"},"modified":"2023-08-04T13:20:51","modified_gmt":"2023-08-04T20:20:51","slug":"tiny-interview-django-polls","status":"publish","type":"post","link":"https:\/\/coderpad.io\/blog\/coding-challenges\/tiny-interview-django-polls\/","title":{"rendered":"Code Challenge: Django Polls"},"content":{"rendered":"\n<p>Django is a popular Python framework for building web applications. At CoderPad, we&#8217;re happy to announce that the <a href=\"https:\/\/coderpad.io\/languages\/python-3\/django\/\">Django environment<\/a>, our latest addition to the CoderPad sandbox, will go public on Tuesday, 17th of January.<\/p>\n\n\n\n<p>For this code challenge, you have two tasks to perform on this simple Django project:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add a database migration to populate the database with a poll of your choice.<\/li>\n\n\n\n<li>Edit the source code so that people can vote for multiple options.<\/li>\n<\/ul>\n\n\n\n<p>Please see the instructions written directly in the pad to proceed.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p>\ud83d\udca1 Remember to share your solution with the hashtag #CoderpadCodeChallenges on Twitter and LinkedIn.<\/p>\n<\/blockquote>\n\n\n<div\n\tclass=\"sandbox-embed responsive-embed  sandbox-embed--full-width\"\n\tstyle=\"padding-top: 85%\"\ndata-block-name=\"coderpad-sandbox-embed\">\n\t<iframe src=\"https:\/\/embed.coderpad.io\/sandbox?question_id=238496&#038;use_question_button\" width=\"640\" height=\"544\" loading=\"lazy\" aria-label=\"Try out the CoderPad sandbox\"><\/iframe>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Code challenge solution<\/h2>\n\n\n\n<p>Verify your solution with the official solution in this <a href=\"https:\/\/app.coderpad.io\/sandbox?question_id=239013\">sandbox<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">More resources<\/h2>\n\n\n\n<p>We have made available these extra resources to improve your Django coding skills:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/coderpad.io\/interview-questions\/django-interview-questions\/\">25+ Django interview questions<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"markdown-want-to-conduct-interviews-on-this-platform\">Want to conduct interviews on this platform?<\/h2>\n\n\n\n<p>Check out CoderPad : pick any interview question or create your own, then invite your candidate to a shared live-coding session on an IDE like this one. You even get 2 free interviews per month forever using&nbsp;<a href=\"https:\/\/app.coderpad.io\/register?source=Tiny+Interviews\">this registration link<\/a>!<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Django is a popular Python framework for building web applications. Test your Django knowledge by improving the polls application in this code challenge.<\/p>\n","protected":false},"author":1,"featured_media":29206,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[22],"tags":[],"persona":[29],"blog-programming-language":[37],"keyword-cluster":[],"class_list":["post-28766","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coding-challenges"],"acf":[],"_links":{"self":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/posts\/28766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/comments?post=28766"}],"version-history":[{"count":17,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/posts\/28766\/revisions"}],"predecessor-version":[{"id":35864,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/posts\/28766\/revisions\/35864"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/media\/29206"}],"wp:attachment":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/media?parent=28766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/categories?post=28766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/tags?post=28766"},{"taxonomy":"persona","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/persona?post=28766"},{"taxonomy":"blog-programming-language","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/blog-programming-language?post=28766"},{"taxonomy":"keyword-cluster","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/keyword-cluster?post=28766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}