From a0ed06126cd0d2c15f689dd249bb6edea35fb80c Mon Sep 17 00:00:00 2001 From: Charlie Date: Wed, 7 Nov 2018 18:56:46 -0800 Subject: [PATCH 1/4] added pipfiles --- Pipfile | 12 +++ Pipfile.lock | 20 +++++ djorg/__init__.py | 0 djorg/settings.py | 121 +++++++++++++++++++++++++++++++ djorg/urls.py | 21 ++++++ djorg/wsgi.py | 16 ++++ manage.py | 15 ++++ notes/__init__.py | 0 notes/admin.py | 3 + notes/apps.py | 5 ++ notes/migrations/0001_initial.py | 26 +++++++ notes/migrations/__init__.py | 0 notes/models.py | 11 +++ notes/tests.py | 3 + notes/views.py | 3 + 15 files changed, 256 insertions(+) create mode 100644 Pipfile create mode 100644 Pipfile.lock create mode 100644 djorg/__init__.py create mode 100644 djorg/settings.py create mode 100644 djorg/urls.py create mode 100644 djorg/wsgi.py create mode 100755 manage.py create mode 100644 notes/__init__.py create mode 100644 notes/admin.py create mode 100644 notes/apps.py create mode 100644 notes/migrations/0001_initial.py create mode 100644 notes/migrations/__init__.py create mode 100644 notes/models.py create mode 100644 notes/tests.py create mode 100644 notes/views.py diff --git a/Pipfile b/Pipfile new file mode 100644 index 000000000..8a20dc9f0 --- /dev/null +++ b/Pipfile @@ -0,0 +1,12 @@ +[[source]] +url = "https://pypi.org/simple" +verify_ssl = true +name = "pypi" + +[packages] +django = "*" + +[dev-packages] + +[requires] +python_version = "3.7" diff --git a/Pipfile.lock b/Pipfile.lock new file mode 100644 index 000000000..9a51a2828 --- /dev/null +++ b/Pipfile.lock @@ -0,0 +1,20 @@ +{ + "_meta": { + "hash": { + "sha256": "7e7ef69da7248742e869378f8421880cf8f0017f96d94d086813baa518a65489" + }, + "pipfile-spec": 6, + "requires": { + "python_version": "3.7" + }, + "sources": [ + { + "name": "pypi", + "url": "https://pypi.org/simple", + "verify_ssl": true + } + ] + }, + "default": {}, + "develop": {} +} diff --git a/djorg/__init__.py b/djorg/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/djorg/settings.py b/djorg/settings.py new file mode 100644 index 000000000..19e7f4185 --- /dev/null +++ b/djorg/settings.py @@ -0,0 +1,121 @@ +""" +Django settings for djorg project. + +Generated by 'django-admin startproject' using Django 2.1.3. + +For more information on this file, see +https://docs.djangoproject.com/en/2.1/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/2.1/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.1/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'vq1xn(534o)_$=tx_!0!-+mn3skscg$&7fiu_x^l#z-y_bf0uc' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'notes', + '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 = 'djorg.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 = 'djorg.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/2.1/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.1/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.1/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.1/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/djorg/urls.py b/djorg/urls.py new file mode 100644 index 000000000..f4f667215 --- /dev/null +++ b/djorg/urls.py @@ -0,0 +1,21 @@ +"""djorg URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/2.1/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 + +urlpatterns = [ + path('admin/', admin.site.urls), +] diff --git a/djorg/wsgi.py b/djorg/wsgi.py new file mode 100644 index 000000000..7bb827bb0 --- /dev/null +++ b/djorg/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for djorg 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.1/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djorg.settings') + +application = get_wsgi_application() diff --git a/manage.py b/manage.py new file mode 100755 index 000000000..ae1e94bc6 --- /dev/null +++ b/manage.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == '__main__': + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djorg.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) diff --git a/notes/__init__.py b/notes/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/notes/admin.py b/notes/admin.py new file mode 100644 index 000000000..8c38f3f3d --- /dev/null +++ b/notes/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/notes/apps.py b/notes/apps.py new file mode 100644 index 000000000..b6155aca3 --- /dev/null +++ b/notes/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class NotesConfig(AppConfig): + name = 'notes' diff --git a/notes/migrations/0001_initial.py b/notes/migrations/0001_initial.py new file mode 100644 index 000000000..af425a162 --- /dev/null +++ b/notes/migrations/0001_initial.py @@ -0,0 +1,26 @@ +# Generated by Django 2.1.3 on 2018-11-07 03:00 + +from django.db import migrations, models +import uuid + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Note', + fields=[ + ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), + ('title', models.CharField(max_length=30)), + ('body', models.TextField(blank=True, max_length=500)), + ('author', models.CharField(max_length=30)), + ('date', models.DateTimeField()), + ('completed', models.BooleanField(default=False)), + ], + ), + ] diff --git a/notes/migrations/__init__.py b/notes/migrations/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/notes/models.py b/notes/models.py new file mode 100644 index 000000000..60b2f095d --- /dev/null +++ b/notes/models.py @@ -0,0 +1,11 @@ +from django.db import models +from uuid import uuid4 + +# Create your models here. +class Note ( models.Model ): + id = models.UUIDField ( primary_key = True, default = uuid4, editable = False ) + title = models.CharField( max_length = 30 ) + body = models.TextField( blank = True, max_length = 500) + author = models.CharField( max_length = 30 ) + date = models.DateTimeField( auto_now=False, auto_now_add=False ) + completed = models.BooleanField( default = Falses ) diff --git a/notes/tests.py b/notes/tests.py new file mode 100644 index 000000000..7ce503c2d --- /dev/null +++ b/notes/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/notes/views.py b/notes/views.py new file mode 100644 index 000000000..91ea44a21 --- /dev/null +++ b/notes/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. From e66ac31cff17e9145abe9cc2a2109687ff5547c1 Mon Sep 17 00:00:00 2001 From: Charlie Date: Wed, 7 Nov 2018 20:48:32 -0800 Subject: [PATCH 2/4] CRC: saved note in day 1 test --- notes/migrations/0002_auto_20181108_0433.py | 39 +++++++++++++++++++++ notes/migrations/0003_auto_20181108_0437.py | 25 +++++++++++++ notes/migrations/0004_auto_20181108_0438.py | 18 ++++++++++ notes/models.py | 8 ++--- 4 files changed, 86 insertions(+), 4 deletions(-) create mode 100644 notes/migrations/0002_auto_20181108_0433.py create mode 100644 notes/migrations/0003_auto_20181108_0437.py create mode 100644 notes/migrations/0004_auto_20181108_0438.py diff --git a/notes/migrations/0002_auto_20181108_0433.py b/notes/migrations/0002_auto_20181108_0433.py new file mode 100644 index 000000000..627826e22 --- /dev/null +++ b/notes/migrations/0002_auto_20181108_0433.py @@ -0,0 +1,39 @@ +# Generated by Django 2.1.3 on 2018-11-08 04:33 + +from django.db import migrations, models +import uuid + + +class Migration(migrations.Migration): + + dependencies = [ + ('notes', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='note', + name='author', + field=models.CharField(blank=True, max_length=30), + ), + migrations.AlterField( + model_name='note', + name='completed', + field=models.BooleanField(blank=True, default=False), + ), + migrations.AlterField( + model_name='note', + name='date', + field=models.DateTimeField(blank=True), + ), + migrations.AlterField( + model_name='note', + name='id', + field=models.UUIDField(blank=True, default=uuid.uuid4, editable=False, primary_key=True, serialize=False), + ), + migrations.AlterField( + model_name='note', + name='title', + field=models.CharField(blank=True, max_length=30), + ), + ] diff --git a/notes/migrations/0003_auto_20181108_0437.py b/notes/migrations/0003_auto_20181108_0437.py new file mode 100644 index 000000000..8e0656e1c --- /dev/null +++ b/notes/migrations/0003_auto_20181108_0437.py @@ -0,0 +1,25 @@ +# Generated by Django 2.1.3 on 2018-11-08 04:37 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('notes', '0002_auto_20181108_0433'), + ] + + operations = [ + migrations.RemoveField( + model_name='note', + name='author', + ), + migrations.RemoveField( + model_name='note', + name='completed', + ), + migrations.RemoveField( + model_name='note', + name='date', + ), + ] diff --git a/notes/migrations/0004_auto_20181108_0438.py b/notes/migrations/0004_auto_20181108_0438.py new file mode 100644 index 000000000..0c917ca4a --- /dev/null +++ b/notes/migrations/0004_auto_20181108_0438.py @@ -0,0 +1,18 @@ +# Generated by Django 2.1.3 on 2018-11-08 04:38 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('notes', '0003_auto_20181108_0437'), + ] + + operations = [ + migrations.AlterField( + model_name='note', + name='title', + field=models.CharField(max_length=30), + ), + ] diff --git a/notes/models.py b/notes/models.py index 60b2f095d..fb3d3b036 100644 --- a/notes/models.py +++ b/notes/models.py @@ -3,9 +3,9 @@ # Create your models here. class Note ( models.Model ): - id = models.UUIDField ( primary_key = True, default = uuid4, editable = False ) + id = models.UUIDField ( primary_key = True, default = uuid4, editable = False, blank = True ) title = models.CharField( max_length = 30 ) body = models.TextField( blank = True, max_length = 500) - author = models.CharField( max_length = 30 ) - date = models.DateTimeField( auto_now=False, auto_now_add=False ) - completed = models.BooleanField( default = Falses ) + # author = models.CharField( max_length = 30, blank = True) + # date = models.DateTimeField( auto_now=False, auto_now_add=False, blank = True) + # completed = models.BooleanField( default = False, blank = True ) From 8a3affba343c22d6d22216886597361683fb2902 Mon Sep 17 00:00:00 2001 From: Charlie Date: Tue, 13 Nov 2018 19:14:33 -0800 Subject: [PATCH 3/4] CRC: test --- Pipfile | 1 + Pipfile.lock | 1 + 2 files changed, 2 insertions(+) diff --git a/Pipfile b/Pipfile index 8a20dc9f0..172da92c2 100644 --- a/Pipfile +++ b/Pipfile @@ -5,6 +5,7 @@ name = "pypi" [packages] django = "*" +python-decouple = "*" [dev-packages] diff --git a/Pipfile.lock b/Pipfile.lock index 9a51a2828..8f8244020 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -17,4 +17,5 @@ }, "default": {}, "develop": {} + } From 2ffaf1f0fa9728c620562c56ee9625503a0130be Mon Sep 17 00:00:00 2001 From: Charlie Date: Tue, 13 Nov 2018 19:56:54 -0800 Subject: [PATCH 4/4] CRC: Finish day 1 --- .gitignore | 1 + Caroline_Notes/Caroline_Notes/__init__.py | 0 Caroline_Notes/Caroline_Notes/models.py | 10 ++ Caroline_Notes/Caroline_Notes/settings.py | 122 ++++++++++++++++++++++ Caroline_Notes/Caroline_Notes/urls.py | 21 ++++ Caroline_Notes/Caroline_Notes/wsgi.py | 16 +++ Caroline_Notes/manage.py | 15 +++ Notes_2/__init__.py | 0 Notes_2/admin.py | 3 + Notes_2/apps.py | 5 + Notes_2/migrations/__init__.py | 0 Notes_2/models.py | 3 + Notes_2/tests.py | 3 + Notes_2/views.py | 3 + Pipfile.lock | 28 ++++- 15 files changed, 227 insertions(+), 3 deletions(-) create mode 100644 Caroline_Notes/Caroline_Notes/__init__.py create mode 100644 Caroline_Notes/Caroline_Notes/models.py create mode 100644 Caroline_Notes/Caroline_Notes/settings.py create mode 100644 Caroline_Notes/Caroline_Notes/urls.py create mode 100644 Caroline_Notes/Caroline_Notes/wsgi.py create mode 100755 Caroline_Notes/manage.py create mode 100644 Notes_2/__init__.py create mode 100644 Notes_2/admin.py create mode 100644 Notes_2/apps.py create mode 100644 Notes_2/migrations/__init__.py create mode 100644 Notes_2/models.py create mode 100644 Notes_2/tests.py create mode 100644 Notes_2/views.py diff --git a/.gitignore b/.gitignore index 894a44cc0..5045dbbc7 100644 --- a/.gitignore +++ b/.gitignore @@ -89,6 +89,7 @@ venv/ ENV/ env.bak/ venv.bak/ +config.env # Spyder project settings .spyderproject diff --git a/Caroline_Notes/Caroline_Notes/__init__.py b/Caroline_Notes/Caroline_Notes/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/Caroline_Notes/Caroline_Notes/models.py b/Caroline_Notes/Caroline_Notes/models.py new file mode 100644 index 000000000..dbe4ac048 --- /dev/null +++ b/Caroline_Notes/Caroline_Notes/models.py @@ -0,0 +1,10 @@ +from uuid import uuid4 + +# Create your models here. +class Note ( models.Model ): + id = models.UUIDField ( primary_key = True, default = uuid4, editable = False, blank = True ) + title = models.CharField( max_length = 30 ) + body = models.TextField( blank = True, max_length = 500) + # author = models.CharField( max_length = 30, blank = True) + # date = models.DateTimeField( auto_now=False, auto_now_add=False, blank = True) + # completed = models.BooleanField( default = False, blank = True ) diff --git a/Caroline_Notes/Caroline_Notes/settings.py b/Caroline_Notes/Caroline_Notes/settings.py new file mode 100644 index 000000000..d12462d16 --- /dev/null +++ b/Caroline_Notes/Caroline_Notes/settings.py @@ -0,0 +1,122 @@ +""" +Django settings for Caroline_Notes project. + +Generated by 'django-admin startproject' using Django 2.1.3. + +For more information on this file, see +https://docs.djangoproject.com/en/2.1/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/2.1/ref/settings/ +""" + +import os +from decouple import config + +# 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.1/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = config('SECRET_KEY') + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = config('DEBUG', cast=bool) + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'Caroline_Notes', + '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 = 'Caroline_Notes.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 = 'Caroline_Notes.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/2.1/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.1/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.1/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.1/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/Caroline_Notes/Caroline_Notes/urls.py b/Caroline_Notes/Caroline_Notes/urls.py new file mode 100644 index 000000000..65f10d453 --- /dev/null +++ b/Caroline_Notes/Caroline_Notes/urls.py @@ -0,0 +1,21 @@ +"""Caroline_Notes URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/2.1/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 + +urlpatterns = [ + path('admin/', admin.site.urls), +] diff --git a/Caroline_Notes/Caroline_Notes/wsgi.py b/Caroline_Notes/Caroline_Notes/wsgi.py new file mode 100644 index 000000000..062756989 --- /dev/null +++ b/Caroline_Notes/Caroline_Notes/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for Caroline_Notes 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.1/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Caroline_Notes.settings') + +application = get_wsgi_application() diff --git a/Caroline_Notes/manage.py b/Caroline_Notes/manage.py new file mode 100755 index 000000000..322eeb70e --- /dev/null +++ b/Caroline_Notes/manage.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == '__main__': + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Caroline_Notes.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) diff --git a/Notes_2/__init__.py b/Notes_2/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/Notes_2/admin.py b/Notes_2/admin.py new file mode 100644 index 000000000..8c38f3f3d --- /dev/null +++ b/Notes_2/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/Notes_2/apps.py b/Notes_2/apps.py new file mode 100644 index 000000000..9cfcdcb91 --- /dev/null +++ b/Notes_2/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class Notes2Config(AppConfig): + name = 'Notes_2' diff --git a/Notes_2/migrations/__init__.py b/Notes_2/migrations/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/Notes_2/models.py b/Notes_2/models.py new file mode 100644 index 000000000..71a836239 --- /dev/null +++ b/Notes_2/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/Notes_2/tests.py b/Notes_2/tests.py new file mode 100644 index 000000000..7ce503c2d --- /dev/null +++ b/Notes_2/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/Notes_2/views.py b/Notes_2/views.py new file mode 100644 index 000000000..91ea44a21 --- /dev/null +++ b/Notes_2/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/Pipfile.lock b/Pipfile.lock index 8f8244020..bbc0d0a13 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "7e7ef69da7248742e869378f8421880cf8f0017f96d94d086813baa518a65489" + "sha256": "0bb3b331760d823d01166b55e53cd9c02ded57f108f27a6e4dd739e3ed291a1f" }, "pipfile-spec": 6, "requires": { @@ -15,7 +15,29 @@ } ] }, - "default": {}, + "default": { + "django": { + "hashes": [ + "sha256:1ffab268ada3d5684c05ba7ce776eaeedef360712358d6a6b340ae9f16486916", + "sha256:dd46d87af4c1bf54f4c926c3cfa41dc2b5c15782f15e4329752ce65f5dad1c37" + ], + "index": "pypi", + "version": "==2.1.3" + }, + "python-decouple": { + "hashes": [ + "sha256:1317df14b43efee4337a4aa02914bf004f010cd56d6c4bd894e6474ec8c4fe2d" + ], + "index": "pypi", + "version": "==3.1" + }, + "pytz": { + "hashes": [ + "sha256:31cb35c89bd7d333cd32c5f278fca91b523b0834369e757f4c5641ea252236ca", + "sha256:8e0f8568c118d3077b46be7d654cc8167fa916092e28320cde048e54bfc9f1e6" + ], + "version": "==2018.7" + } + }, "develop": {} - }