diff --git a/.idea/BestNotesProject.iml b/.idea/BestNotesProject.iml
new file mode 100644
index 0000000..6711606
--- /dev/null
+++ b/.idea/BestNotesProject.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..7a85af6
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..45df6ad
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..542e867
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,284 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ bestnotes.apps.BestnotesConfigdjango
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1574623676973
+
+
+ 1574623676973
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BestNotesProject/__init__.py b/BestNotesProject/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/BestNotesProject/__pycache__/__init__.cpython-38.pyc b/BestNotesProject/__pycache__/__init__.cpython-38.pyc
new file mode 100644
index 0000000..818c2da
Binary files /dev/null and b/BestNotesProject/__pycache__/__init__.cpython-38.pyc differ
diff --git a/BestNotesProject/__pycache__/settings.cpython-38.pyc b/BestNotesProject/__pycache__/settings.cpython-38.pyc
new file mode 100644
index 0000000..ea54232
Binary files /dev/null and b/BestNotesProject/__pycache__/settings.cpython-38.pyc differ
diff --git a/BestNotesProject/__pycache__/urls.cpython-38.pyc b/BestNotesProject/__pycache__/urls.cpython-38.pyc
new file mode 100644
index 0000000..24bb478
Binary files /dev/null and b/BestNotesProject/__pycache__/urls.cpython-38.pyc differ
diff --git a/BestNotesProject/__pycache__/wsgi.cpython-38.pyc b/BestNotesProject/__pycache__/wsgi.cpython-38.pyc
new file mode 100644
index 0000000..11339ee
Binary files /dev/null and b/BestNotesProject/__pycache__/wsgi.cpython-38.pyc differ
diff --git a/BestNotesProject/settings.py b/BestNotesProject/settings.py
new file mode 100644
index 0000000..0504086
--- /dev/null
+++ b/BestNotesProject/settings.py
@@ -0,0 +1,121 @@
+"""
+Django settings for BestNotesProject project.
+
+Generated by 'django-admin startproject' using Django 2.2.7.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/2.2/topics/settings/
+
+For the full list of settings and their values, see
+https://docs.djangoproject.com/en/2.2/ref/settings/
+"""
+
+import os
+
+# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
+BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+
+
+# Quick-start development settings - unsuitable for production
+# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
+
+# SECURITY WARNING: keep the secret key used in production secret!
+SECRET_KEY = '!_d^j-tap#j_d+hqaz^g8*n4l-p=uop+5s-jbiykp2_6ik-xwa'
+
+# SECURITY WARNING: don't run with debug turned on in production!
+DEBUG = True
+
+ALLOWED_HOSTS = []
+
+
+# Application definition
+
+INSTALLED_APPS = [
+ 'bestnotes.apps.BestnotesConfig',
+ 'django.contrib.admin',
+ 'django.contrib.auth',
+ 'django.contrib.contenttypes',
+ 'django.contrib.sessions',
+ 'django.contrib.messages',
+ 'django.contrib.staticfiles',
+]
+
+MIDDLEWARE = [
+ 'django.middleware.security.SecurityMiddleware',
+ 'django.contrib.sessions.middleware.SessionMiddleware',
+ 'django.middleware.common.CommonMiddleware',
+ 'django.middleware.csrf.CsrfViewMiddleware',
+ 'django.contrib.auth.middleware.AuthenticationMiddleware',
+ 'django.contrib.messages.middleware.MessageMiddleware',
+ 'django.middleware.clickjacking.XFrameOptionsMiddleware',
+]
+
+ROOT_URLCONF = 'BestNotesProject.urls'
+
+TEMPLATES = [
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'DIRS': [],
+ 'APP_DIRS': True,
+ 'OPTIONS': {
+ 'context_processors': [
+ 'django.template.context_processors.debug',
+ 'django.template.context_processors.request',
+ 'django.contrib.auth.context_processors.auth',
+ 'django.contrib.messages.context_processors.messages',
+ ],
+ },
+ },
+]
+
+WSGI_APPLICATION = 'BestNotesProject.wsgi.application'
+
+
+# Database
+# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
+
+DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
+ }
+}
+
+
+# Password validation
+# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
+
+AUTH_PASSWORD_VALIDATORS = [
+ {
+ 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
+ },
+ {
+ 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
+ },
+ {
+ 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
+ },
+ {
+ 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
+ },
+]
+
+
+# Internationalization
+# https://docs.djangoproject.com/en/2.2/topics/i18n/
+
+LANGUAGE_CODE = 'en-us'
+
+TIME_ZONE = 'UTC'
+
+USE_I18N = True
+
+USE_L10N = True
+
+USE_TZ = True
+
+
+# Static files (CSS, JavaScript, Images)
+# https://docs.djangoproject.com/en/2.2/howto/static-files/
+
+STATIC_URL = '/static/'
diff --git a/BestNotesProject/urls.py b/BestNotesProject/urls.py
new file mode 100644
index 0000000..9856b50
--- /dev/null
+++ b/BestNotesProject/urls.py
@@ -0,0 +1,22 @@
+"""BestNotesProject URL Configuration
+
+The `urlpatterns` list routes URLs to views. For more information please see:
+ https://docs.djangoproject.com/en/2.2/topics/http/urls/
+Examples:
+Function views
+ 1. Add an import: from my_app import views
+ 2. Add a URL to urlpatterns: path('', views.home, name='home')
+Class-based views
+ 1. Add an import: from other_app.views import Home
+ 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
+Including another URLconf
+ 1. Import the include() function: from django.urls import include, path
+ 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
+"""
+from django.contrib import admin
+from django.urls import path, include
+
+urlpatterns = [
+ path('bestnotes/', include('bestnotes.urls')),
+ path('admin/', admin.site.urls),
+]
diff --git a/BestNotesProject/wsgi.py b/BestNotesProject/wsgi.py
new file mode 100644
index 0000000..9442dbc
--- /dev/null
+++ b/BestNotesProject/wsgi.py
@@ -0,0 +1,16 @@
+"""
+WSGI config for BestNotesProject project.
+
+It exposes the WSGI callable as a module-level variable named ``application``.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
+"""
+
+import os
+
+from django.core.wsgi import get_wsgi_application
+
+os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'BestNotesProject.settings')
+
+application = get_wsgi_application()
diff --git a/bestnotes/__init__.py b/bestnotes/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/bestnotes/__pycache__/__init__.cpython-38.pyc b/bestnotes/__pycache__/__init__.cpython-38.pyc
new file mode 100644
index 0000000..4de046f
Binary files /dev/null and b/bestnotes/__pycache__/__init__.cpython-38.pyc differ
diff --git a/bestnotes/__pycache__/admin.cpython-38.pyc b/bestnotes/__pycache__/admin.cpython-38.pyc
new file mode 100644
index 0000000..917c192
Binary files /dev/null and b/bestnotes/__pycache__/admin.cpython-38.pyc differ
diff --git a/bestnotes/__pycache__/apps.cpython-38.pyc b/bestnotes/__pycache__/apps.cpython-38.pyc
new file mode 100644
index 0000000..44c6522
Binary files /dev/null and b/bestnotes/__pycache__/apps.cpython-38.pyc differ
diff --git a/bestnotes/__pycache__/models.cpython-38.pyc b/bestnotes/__pycache__/models.cpython-38.pyc
new file mode 100644
index 0000000..d35d821
Binary files /dev/null and b/bestnotes/__pycache__/models.cpython-38.pyc differ
diff --git a/bestnotes/__pycache__/urls.cpython-38.pyc b/bestnotes/__pycache__/urls.cpython-38.pyc
new file mode 100644
index 0000000..b40d5b0
Binary files /dev/null and b/bestnotes/__pycache__/urls.cpython-38.pyc differ
diff --git a/bestnotes/__pycache__/views.cpython-38.pyc b/bestnotes/__pycache__/views.cpython-38.pyc
new file mode 100644
index 0000000..27023b4
Binary files /dev/null and b/bestnotes/__pycache__/views.cpython-38.pyc differ
diff --git a/bestnotes/admin.py b/bestnotes/admin.py
new file mode 100644
index 0000000..6b4570b
--- /dev/null
+++ b/bestnotes/admin.py
@@ -0,0 +1,7 @@
+from django.contrib import admin
+
+# Register your models here.
+from django.contrib import admin
+from .models import StudentProfile
+
+admin.site.register(StudentProfile)
\ No newline at end of file
diff --git a/bestnotes/apps.py b/bestnotes/apps.py
new file mode 100644
index 0000000..3304174
--- /dev/null
+++ b/bestnotes/apps.py
@@ -0,0 +1,5 @@
+from django.apps import AppConfig
+
+
+class BestnotesConfig(AppConfig):
+ name = 'bestnotes'
diff --git a/bestnotes/migrations/0001_initial.py b/bestnotes/migrations/0001_initial.py
new file mode 100644
index 0000000..0a6073a
--- /dev/null
+++ b/bestnotes/migrations/0001_initial.py
@@ -0,0 +1,27 @@
+# Generated by Django 2.2.7 on 2019-11-24 22:36
+
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='StudentProfile',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('bio', models.TextField(blank=True, max_length=500)),
+ ('birth_date', models.DateField(blank=True, null=True)),
+ ('location', models.CharField(blank=True, max_length=100)),
+ ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
+ ],
+ ),
+ ]
diff --git a/bestnotes/migrations/__init__.py b/bestnotes/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/bestnotes/migrations/__pycache__/0001_initial.cpython-38.pyc b/bestnotes/migrations/__pycache__/0001_initial.cpython-38.pyc
new file mode 100644
index 0000000..0af4ce3
Binary files /dev/null and b/bestnotes/migrations/__pycache__/0001_initial.cpython-38.pyc differ
diff --git a/bestnotes/migrations/__pycache__/__init__.cpython-38.pyc b/bestnotes/migrations/__pycache__/__init__.cpython-38.pyc
new file mode 100644
index 0000000..01a50cd
Binary files /dev/null and b/bestnotes/migrations/__pycache__/__init__.cpython-38.pyc differ
diff --git a/bestnotes/models.py b/bestnotes/models.py
new file mode 100644
index 0000000..ba6aa90
--- /dev/null
+++ b/bestnotes/models.py
@@ -0,0 +1,35 @@
+from django.db import models
+
+# Create your models here.
+from django.db import models
+from django.contrib.auth.models import User
+from django.db.models.signals import post_save
+from django.dispatch import receiver
+
+class StudentProfile(models.Model):
+ user = models.OneToOneField(User, on_delete=models.CASCADE)
+ #Custom filds extending default user table:
+ bio = models.TextField(max_length=500, blank=True)
+ birth_date = models.DateField(null=True, blank=True)
+ #student_name = models.TextField(max_length=50, blank=True) #User table has first_name fild
+ #student_surname = models.TextField(max_length=50, blank=True) #User table has last_name field
+ location = models.CharField(max_length=100, blank=True)#can contain info about country, city, school etc.
+ """
+ to add as foreign key, when coresponding table is added:
+ CourseId
+ """
+
+
+
+
+
+
+@receiver(post_save, sender=User)
+def create_studentprofile(sender, instance, created, **kwargs):
+ if created:
+ StudentProfile.objects.create(user=instance)
+
+
+@receiver(post_save, sender=User)
+def save_studentprofile(sender, instance, **kwargs):
+ instance.studentprofile.save()
\ No newline at end of file
diff --git a/bestnotes/tests.py b/bestnotes/tests.py
new file mode 100644
index 0000000..7ce503c
--- /dev/null
+++ b/bestnotes/tests.py
@@ -0,0 +1,3 @@
+from django.test import TestCase
+
+# Create your tests here.
diff --git a/bestnotes/urls.py b/bestnotes/urls.py
new file mode 100644
index 0000000..cfd51a6
--- /dev/null
+++ b/bestnotes/urls.py
@@ -0,0 +1,7 @@
+from django.urls import path
+
+from . import views
+
+urlpatterns = [
+ path('', views.index, name='index')
+]
\ No newline at end of file
diff --git a/bestnotes/views.py b/bestnotes/views.py
new file mode 100644
index 0000000..02facb8
--- /dev/null
+++ b/bestnotes/views.py
@@ -0,0 +1,8 @@
+from django.shortcuts import render
+
+# Create your views here.
+
+from django.http import HttpResponse
+
+def index(request):
+ return HttpResponse("BestNotes' index will be here.")
\ No newline at end of file
diff --git a/bn_migrate_log.txt b/bn_migrate_log.txt
new file mode 100644
index 0000000..e4f36f6
--- /dev/null
+++ b/bn_migrate_log.txt
@@ -0,0 +1,6 @@
+BEGIN;
+--
+-- Create model StudentProfile
+--
+CREATE TABLE "bestnotes_studentprofile" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "bio" text NOT NULL, "birth_date" date NULL, "location" varchar(100) NOT NULL, "user_id" integer NOT NULL UNIQUE REFERENCES "auth_user" ("id") DEFERRABLE INITIALLY DEFERRED);
+COMMIT;
diff --git a/db.sqlite3 b/db.sqlite3
new file mode 100644
index 0000000..23b1b97
Binary files /dev/null and b/db.sqlite3 differ
diff --git a/how_to_run.txt b/how_to_run.txt
new file mode 100644
index 0000000..6098c30
--- /dev/null
+++ b/how_to_run.txt
@@ -0,0 +1,23 @@
+@@WINDOWS@@
+run cmd
+change directory to \BestNotesProject
+py manage.py runserver
+
+visit: http://127.0.0.1:8000/bestnotes/
+or
+http://127.0.0.1:8000/admin/
+
+username: admin
+password: admin
+
+@@LINUX@@
+run cmd
+change directory to \BestNotesProject
+python manage.py runserver
+
+visit: http://127.0.0.1:8000/bestnotes/
+or
+http://127.0.0.1:8000/admin/
+
+username: admin
+password: admin
\ No newline at end of file
diff --git a/manage.py b/manage.py
new file mode 100644
index 0000000..e829f2f
--- /dev/null
+++ b/manage.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+"""Django's command-line utility for administrative tasks."""
+import os
+import sys
+
+
+def main():
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'BestNotesProject.settings')
+ try:
+ from django.core.management import execute_from_command_line
+ except ImportError as exc:
+ raise ImportError(
+ "Couldn't import Django. Are you sure it's installed and "
+ "available on your PYTHONPATH environment variable? Did you "
+ "forget to activate a virtual environment?"
+ ) from exc
+ execute_from_command_line(sys.argv)
+
+
+if __name__ == '__main__':
+ main()