Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bonnegent Sebastien
cours_django
Commits
9b0a7435
Commit
9b0a7435
authored
Nov 10, 2021
by
Bonnegent Sebastien
Browse files
ajout d'un lien vers la doc
parent
c00e2cf9
Pipeline
#11816
passed with stages
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cours1.md
View file @
9b0a7435
...
...
@@ -126,7 +126,7 @@ $ git clone \
$
cd
cours_django
$
ls
exemples
docker-compose.yml Dockerfile Pipfile Pipfile.lock
requirements.txt
requirements
-3.6.txt requirements-3.8
.txt
$
mkdir
fwm1
$
cd
!
$
~~~
...
...
@@ -135,7 +135,7 @@ $ cd !$
~~~
bash
$
# à partir du répertoire fwm1
$
sudo
apt
install
python3-pip
$
pip3
install
--user
-r
../exemples/requirements.txt
$
pip3
install
--user
-r
../exemples/requirements
-3.6
.txt
$
export
PATH
=
~/.local/bin:
$PATH
$
python3
-c
'import django'
Traceback
(
most recent call last
)
:
...
...
@@ -237,10 +237,13 @@ Note: pas de clé primaire !
# À vous de jouer !
## Ports
<https://docs.djangoproject.com/fr/3.1/ref/models/fields/>
-
protocole: any (défaut), tcp, udp, icmp
-
début: entier positif, 0 par défaut
-
fin: entier positif, 0 par défaut
## webui/models.py
~~~
python
PROTO
=
((
'a'
,
'any'
),
(
't'
,
'tcp'
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment