From 94f3ecab148c47050e211bd737cf3cc50c78011e Mon Sep 17 00:00:00 2001 From: samuel Date: Mon, 29 Jun 2020 16:57:59 +0200 Subject: [PATCH] installing django and .org filel + .gitignore file --- sami/django/#django.org# | 28 +++++++++++++++++++ sami/django/.#django.org | 1 + sami/django/.gitignore | 5 ++++ sami/django/env/bin/python | 1 + sami/django/env/bin/python3 | 1 + sami/django/env/lib64 | 1 + sami/django/env/pyvenv.cfg | 3 ++ .../.#learn-german.org | 1 - .../ungleich-learning-circle | 1 + 9 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 sami/django/#django.org# create mode 120000 sami/django/.#django.org create mode 100644 sami/django/.gitignore create mode 120000 sami/django/env/bin/python create mode 120000 sami/django/env/bin/python3 create mode 120000 sami/django/env/lib64 create mode 100644 sami/django/env/pyvenv.cfg delete mode 120000 sami/learn-python-the-hard-way/.#learn-german.org create mode 160000 sami/learn-python-the-hard-way/ungleich-learning-circle diff --git a/sami/django/#django.org# b/sami/django/#django.org# new file mode 100644 index 0000000..271ff85 --- /dev/null +++ b/sami/django/#django.org# @@ -0,0 +1,28 @@ +*** Django #1: Introduction +**** Objective + - We will build a IPv6 ULA registry with Django in the + next lectures +**** Lecture content + - Create a new directory in your learning cirle repository named "django" + - Write down the answers to the following questions in django/django.org + - Research and answer the following questions: (1/2 of the time) + - What is IPv6 ULA? + - addresses that are only ment to be used in privte segment. + - unique Local address they can be easly identified by FD00::/8 + - equivllent to privte address in v4 + - Which registries did exist historically? + - How should an IPv6 ULA registry work? + - Get started with Django + - Create a new python virtual env using `python3 -m venv` + - Create the venv in django/venv + - Create a file .gitignore in django/ + - Add 'venv/' (without the quotes to that file + - Use magit to verify that the venv is being ignored + - Add and commit the .gitignore file + - Inside this virtual env, install django using `pip` + - Go to https://www.djangoproject.com/ + - Finish tutorial 1: https://docs.djangoproject.com/en/3.0/intro/tutorial01/ + - Commit the django code to your repository + - Exclude '*.pyc' in the .gitignore + - Also exclude the sqlite database + diff --git a/sami/django/.#django.org b/sami/django/.#django.org new file mode 120000 index 0000000..d64e808 --- /dev/null +++ b/sami/django/.#django.org @@ -0,0 +1 @@ +sami@afro-linux-lenovo-b50-30.13724:1593172229 \ No newline at end of file diff --git a/sami/django/.gitignore b/sami/django/.gitignore new file mode 100644 index 0000000..7f07ff3 --- /dev/null +++ b/sami/django/.gitignore @@ -0,0 +1,5 @@ +venv + +*.pyc + + diff --git a/sami/django/env/bin/python b/sami/django/env/bin/python new file mode 120000 index 0000000..b8a0adb --- /dev/null +++ b/sami/django/env/bin/python @@ -0,0 +1 @@ +python3 \ No newline at end of file diff --git a/sami/django/env/bin/python3 b/sami/django/env/bin/python3 new file mode 120000 index 0000000..ae65fda --- /dev/null +++ b/sami/django/env/bin/python3 @@ -0,0 +1 @@ +/usr/bin/python3 \ No newline at end of file diff --git a/sami/django/env/lib64 b/sami/django/env/lib64 new file mode 120000 index 0000000..7951405 --- /dev/null +++ b/sami/django/env/lib64 @@ -0,0 +1 @@ +lib \ No newline at end of file diff --git a/sami/django/env/pyvenv.cfg b/sami/django/env/pyvenv.cfg new file mode 100644 index 0000000..bafe8a4 --- /dev/null +++ b/sami/django/env/pyvenv.cfg @@ -0,0 +1,3 @@ +home = /usr/bin +include-system-site-packages = false +version = 3.7.5 diff --git a/sami/learn-python-the-hard-way/.#learn-german.org b/sami/learn-python-the-hard-way/.#learn-german.org deleted file mode 120000 index f748d3d..0000000 --- a/sami/learn-python-the-hard-way/.#learn-german.org +++ /dev/null @@ -1 +0,0 @@ -sami@afro-linux-lenovo-b50-30.2711:1593172229 \ No newline at end of file diff --git a/sami/learn-python-the-hard-way/ungleich-learning-circle b/sami/learn-python-the-hard-way/ungleich-learning-circle new file mode 160000 index 0000000..a0012ef --- /dev/null +++ b/sami/learn-python-the-hard-way/ungleich-learning-circle @@ -0,0 +1 @@ +Subproject commit a0012ef6c4d44c875a3173fc746ab0a9259bc531