OpenVPN 3 client
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