Complete the code to import Django's main module.
import [1]
Django is a Python web framework, so you import it using import django.
Complete the code to create a new Django project named 'myproject'.
django-admin startproject [1]The command django-admin startproject myproject creates a new Django project named 'myproject'.
Fix the error in the command to run the Django development server.
python manage.py [1]The correct command to start Django's development server is python manage.py runserver.
Fill both blanks to define a simple Django view that returns 'Hello World'.
from django.http import [1] def home(request): return [2]('Hello World')
Django views return an HttpResponse object to send text back to the browser.
Fill all three blanks to add a URL pattern for the home view in Django.
from django.urls import [1] from .views import [2] urlpatterns = [ [3]('', home), ]
Use path to define URL patterns and import the home view to connect it.
