stack web framework Django-ORM Template Engine HTTP Request/Response URL Routing Mechanism Testing Dev Server (WSGI) Python para desarrolladores web
de datos (models.py) View →vistas de datos (views.py): qué datos se presentan Template → plantillas HTML:cómo se presentan los datos Python para desarrolladores web
Un framework para tipos de contenidos django.contrib.sessions Un framework para manejar sesiones DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'mysite.db', } } Python para desarrolladores web
the HTTP capabilities you need, but the API is thoroughly broken. Python HTTP: Requests. Beautiful, simple, Pythonic. 25 http://www.python-requests.org Python para desarrolladores web
http://docs.python-requests.org/en/latest/user/install/#install Use it interactive mode $ python >>> import requests >>> r = requests.get("http://httpbin.org/get") 26 Python para desarrolladores web
from Python http://bokeh.pydata.org Rich interactivity over large datasets HTML5 Canvas Integration with Google Maps http://bokeh.pydata.org/en/latest/docs/gallery.html Python para desarrolladores web
web class PostSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Post fields = ('author', 'title', 'text', 'created_date','published_date') class PostViewSet(viewsets.ModelViewSet): queryset = Post.objects.all() serializer_class = PostSerializer from rest_framework import routers, serializers, viewsets
Timeline Tweet list Trending topic for status in tweepy.Cursor(api.home_timeline).items(10): print(status.text) for tweet in tweepy.Cursor(api.user_timeline).items(): process_or_store(tweet._json) def getTrends(): trends = api.trends_place(1)[0]['trends'] return trends