{{tag>dev pyramid framework web tutos}}
====== Application Pyramid minimale ======
La plupart des dé... ler les dépendances via setuptools
<code python>
from setuptools import setup
# Déclaration des dépe... _app.py** avec le contenu suivant:
<code python>
from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.respo
{{tag>dev framework python pyramid install}}
====== Installation de Pyramid ======
Pour pouvoir fonc... hello.py avec le contenu suivant:
<code python>
from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.response import Response
def hello_world(request):
{{tag>web framework pyramid tutos}}
====== Application web en un fichier ======
Pyramid permet de cr... plication web à partir d'un fichier seul. Mais le framework est également en capacité d'exécuter d'un ... s réponses et des vues (modele MVC proposé par le framework)
objectifs
===== Références =====
* traduction de The Pyramid Web Framewor 1.8.3
{{tag>dev python framework pyramid}}
====== Création d'un projet avec Pyramid ======
===== Environne... l'environnement virtuel python.
* Installer le framework Pyramid dans l'environnement virtuel
Créa
{{tag>dev python pyramid framework}}
====== Pyramid ======
Quelques notes extraites de la documentation 1.6 du framework Pyramid.
===== Système de template =====
{{tag>dev framework pyramid route}}
====== Routage avec Pyramid ======
Deux principales techno pour ... être testé en mode interactif:
<code python>
>>> from pyramid import testing
>>> conf = testing.setU