File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 11# python-socket.io-django
22Python socket.io example with Django framework
3+
4+ ## Installation des modules
5+ Voici tous les modules dont on a besoin pour monter notre serveur socket.
6+
7+ Contenu du fichier ` requirements.txt ` :
8+ ```
9+ asgiref==3.4.1
10+ bidict==0.21.2
11+ Django==3.2.6
12+ dnspython==1.16.0
13+ enum-compat==0.0.3
14+ eventlet==0.30.0
15+ gevent==21.1.2
16+ gevent-websocket==0.10.1
17+ greenlet==0.4.17
18+ python-engineio==4.2.1
19+ python-socketio==5.4.0
20+ pytz==2021.1
21+ six==1.10.0
22+ sqlparse==0.4.1
23+ zope.event==4.5.0
24+ zope.interface==5.4.0
25+
26+ ```
27+ Utiliser la commande suivante pour installer tous les modules contenus dans le fichier.
28+ Vous pouvez aussi les installer un a un afin d'avoir leur dernière version.
29+
30+ ```
31+ pip install -r requirements.txt
32+ ```
33+
34+ ## Creation d'un projet Django
35+ On va maintenant créer un projet Django nommé ` django_socketio ` par exemple.
36+
37+ ```
38+ django-admin startproject django_socketio
39+ ```
40+
41+ Il faut créer ensuite une application. C'est dans cette dernière qu'on va mettre en place
42+ le serveur de ` socket.io ` .
43+
44+ ```
45+ django-admin startapp socketio_app
46+ ```
47+
48+ ## Configuration du projet
49+
50+
51+
52+
You can’t perform that action at this time.
0 commit comments