Search completed in 1.47 seconds.
11 results for "Django":
Server-side web frameworks - Learn web development
the example below shows how this works in the
django (python) web framework.
... #
django view function from
django.http import httpresponse def index(request): # get an httprequest (request) # perform operations using information from the request.
... @app.route("/") def hello(): return "hello world!" while
django expects developers to define a list of url mappings between a url pattern and a view function.
...And 21 more matches
Index - Learn web development
beginner, express, flask, learn, node, php, python,
django, lamp, server-side, servers throughout most of the learning area, we tell you to just open your examples directly in a browser — this can be done by double clicking the html file, dragging and dropping it into the browser window, or choosing file > open...
...the modules provide a general introduction to server-side programming, along with specific beginner-level guides on how to use the
django (python) and express (node.js/javascript) web frameworks to create basic applications.
...if not, then don't worry — later on in the course we'll give you detailed tutorials on
django and express to give you some experience of actually working with a web framework.
Client-Server Overview - Learn web development
for example, consider the following
django (python) code that maps two url patterns to two view functions.
... # file: best/urls.py # from
django.conf.urls import url from .
... #best/views.py from
django.shortcuts import render from .models import team def junior(request): list_teams = team.objects.filter(team_type__exact="junior") context = {'list': list_teams} return render(request, 'best/index.html', context) after the junior() function gets the list of junior teams, it calls the render() function, passing the original httprequest, an html template, and a "context" object defi...
Sending form data - Learn web development
it's more common to use one of the many high quality frameworks that make handling forms easier, such as:
django for python (a bit more heavyweight than flask, but with more tools and options).
Introduction to the server side - Learn web development
in contrast, you would almost never consider writing the server-side component of a web app without a framework — implementing a vital feature like an http server is really hard to do from scratch in say python, but python web frameworks like
django provide one out of the box, along with other very useful tools.
Learn web development
this topic provides a general introduction to how the server-side works and detailed tutorials showing how to build up a server-side app using two popular frameworks:
django (python) and express (node.js).