OpenVPN 3 client: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Die Seite wurde neu angelegt: „=OpenVPN 3 client= ==Installation im entsprechenden Verzeichnis== <ol style="list-style-type: decimal;"><li><p>python3 -m venv .venv</p></li><li><p>source .venv/bin/activate</p><pre>jetzt kann python.exe mit python aufgerufen werden deactivate ==> das Enviroment wieder deaktivieren</pre></li><li><p>pip install django</p></li><li><p>python -m django –-version</p> <pre>ℹ nur zur Prüfung ob alles OK ist oder auch mit python >>> import django >>> prin…“ |
(kein Unterschied)
|
Version vom 8. Februar 2023, 04:23 Uhr
OpenVPN 3 client
Installation im entsprechenden Verzeichnis
python3 -m venv .venv
source .venv/bin/activate
jetzt kann python.exe mit python aufgerufen werden deactivate ==> das Enviroment wieder deaktivieren
pip install django
python -m django –-version
ℹ nur zur Prüfung ob alles OK ist oder auch mit python >>> import django >>> print(django.get_version())
Projekt anlegen
- django-admin startproject astroneth
- python manage.py makemigrations polls
- python manage.py sqlmigrate polls 0001
- python manage.py check;
- python manage.py migrate
- python manage.py shell
- from polls.models import Choice, Question
- Question.objects.all()
- from django.utils import timezone
- q = Question(question_text="What's new?", pub_date=timezone.now())
- q.save()
- q.id
- q.question_text
- q.pub_date
- q.question_text = "What's up?"
- q.save()
- Question.objects.all()
zurück zur ==> Hauptseite