OpenVPN 3 client: Unterschied zwischen den Versionen

Aus AstroNeth-Wiki
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

  1. python3 -m venv .venv

  2. source .venv/bin/activate

    jetzt kann python.exe mit python aufgerufen werden
    deactivate ==> das Enviroment wieder deaktivieren
  3. pip install django

  4. python -m django –-version

    ℹ nur zur Prüfung ob alles OK ist
    oder auch mit
    python
    >>> import django
    >>> print(django.get_version())
    

Projekt anlegen

  1. django-admin startproject astroneth
    • python manage.py makemigrations polls
    • python manage.py sqlmigrate polls 0001
    • python manage.py check;
  2. python manage.py migrate
  3. 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