From e3b7308b8b193f7a779c59b91eeb53b6ce69c039 Mon Sep 17 00:00:00 2001 From: Sharad Ahlawat Date: Sat, 7 Mar 2020 22:30:21 -0800 Subject: [PATCH] initial commit --- .idea/.gitignore | 2 + .../inspectionProfiles/profiles_settings.xml | 6 + .idea/misc.xml | 7 + .idea/modules.xml | 8 ++ .idea/portfolio.iml | 28 ++++ .idea/rSettings.xml | 4 + .idea/vcs.xml | 6 + blog/__init__.py | 0 blog/admin.py | 3 + blog/apps.py | 5 + blog/migrations/__init__.py | 0 blog/models.py | 3 + blog/tests.py | 3 + blog/views.py | 3 + db.sqlite3 | Bin 0 -> 131072 bytes jobs/__init__.py | 0 jobs/admin.py | 3 + jobs/apps.py | 5 + jobs/migrations/__init__.py | 0 jobs/models.py | 3 + jobs/tests.py | 3 + jobs/views.py | 3 + manage.py | 21 +++ portfolio/__init__.py | 0 portfolio/asgi.py | 16 +++ portfolio/settings.py | 121 ++++++++++++++++++ portfolio/urls.py | 21 +++ portfolio/wsgi.py | 16 +++ 28 files changed, 290 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/portfolio.iml create mode 100644 .idea/rSettings.xml create mode 100644 .idea/vcs.xml create mode 100644 blog/__init__.py create mode 100644 blog/admin.py create mode 100644 blog/apps.py create mode 100644 blog/migrations/__init__.py create mode 100644 blog/models.py create mode 100644 blog/tests.py create mode 100644 blog/views.py create mode 100644 db.sqlite3 create mode 100644 jobs/__init__.py create mode 100644 jobs/admin.py create mode 100644 jobs/apps.py create mode 100644 jobs/migrations/__init__.py create mode 100644 jobs/models.py create mode 100644 jobs/tests.py create mode 100644 jobs/views.py create mode 100755 manage.py create mode 100644 portfolio/__init__.py create mode 100644 portfolio/asgi.py create mode 100644 portfolio/settings.py create mode 100644 portfolio/urls.py create mode 100644 portfolio/wsgi.py diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..5c98b42 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,2 @@ +# Default ignored files +/workspace.xml \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..1cd460b --- /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..7dec97e --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/portfolio.iml b/.idea/portfolio.iml new file mode 100644 index 0000000..91e63b6 --- /dev/null +++ b/.idea/portfolio.iml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/rSettings.xml b/.idea/rSettings.xml new file mode 100644 index 0000000..78e3b75 --- /dev/null +++ b/.idea/rSettings.xml @@ -0,0 +1,4 @@ + + + + \ 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/blog/__init__.py b/blog/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/blog/admin.py b/blog/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/blog/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/blog/apps.py b/blog/apps.py new file mode 100644 index 0000000..7930587 --- /dev/null +++ b/blog/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class BlogConfig(AppConfig): + name = 'blog' diff --git a/blog/migrations/__init__.py b/blog/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/blog/models.py b/blog/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/blog/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/blog/tests.py b/blog/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/blog/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/blog/views.py b/blog/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/blog/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/db.sqlite3 b/db.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..479b209ef7b1d449222478d5d254e40dce473ea9 GIT binary patch literal 131072 zcmeI5TZ|*wS;t*=+3t(&)7PnHcW2w}*`67zx3|mp_AVjYJKLFUcD5%w7d9gi6=l2H z4rPO?&P{$6cOopZkP)&Km?rF<@GUw{2dt!u;&TJ473jc0swK1uSu7?1mW zz9;Da>|g7%OK)T=K>w8-_ov-H;d}1=-wHBg@;}T*G58w~h|Arrt2LhJIhG8_jC>wwIH1al4q$T#ivEH-!_mD4ZO1 zsHeK#>5k>7kjbWUABa*%*DXiePDjk!ID&Hdd?xd1g!=ig<)TFp2;7!AEve?(oUifT4hcqL4oykQk3Eu7eGZJf$Z6;g%m^edsDZ~gL)6CmCg4N?fL(_B>R-J1M`2j|GyGj^^xz<-Tyx!Um%|$Z;}Ri zgIp$AvPR~J6#HK6+p)ileL42o*qgCt?B`>bV`-WJ9}oZm5C8!X009sH0T2KI5CDNm zBCsG!>r&{rX57=n%yeZ*mXcDaV$==#hb2U$Vn&v4)5GZf$TRb@bWRGfzpNn4me0u2 zrWEAv9P`+v6x= zaL8g}F0aKfWz_>%+73lC3oeSYr7o_4V}Nq&udob<>?X$E{i00ck) z1V8`;KmY_l00ck)1V8`;MiU4IBq_AQuL{4O;n!t$4KDHPBEK&1>pZ*4bNov9HO8+| zb`3=Mb(UXe_;s3H{ZsrJ=GPFv2IauCB(qC^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szJ(BA+RT_XLP6g~NZ{e8rm4;9g#gpgH((-o;Nlcb-N^X43j0^~`cmwuXT#KT ztKb)U>;z^jMA?zghD>Xr%uZm|LY^IYK1i*TDL>O_$1+nU)Q)*Z4*I4qq_|l6L#^}& zp4$)lQfWk-$6O3htBsrx>a-IwZA(A56e69LLSo-CAyLcqEhf-u#^m*FaQ@#lU?B(s zAOHd&00JNY0w4eaAOHd&00I+80Q3I|tW*>U1V8`;KmY_l00ck)1V8`;KmY_>1pW_Q CE!_bC literal 0 HcmV?d00001 diff --git a/jobs/__init__.py b/jobs/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/jobs/admin.py b/jobs/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/jobs/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/jobs/apps.py b/jobs/apps.py new file mode 100644 index 0000000..14c323a --- /dev/null +++ b/jobs/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class JobsConfig(AppConfig): + name = 'jobs' diff --git a/jobs/migrations/__init__.py b/jobs/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/jobs/models.py b/jobs/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/jobs/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/jobs/tests.py b/jobs/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/jobs/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/jobs/views.py b/jobs/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/jobs/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/manage.py b/manage.py new file mode 100755 index 0000000..88fe1f7 --- /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', 'portfolio.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() diff --git a/portfolio/__init__.py b/portfolio/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/portfolio/asgi.py b/portfolio/asgi.py new file mode 100644 index 0000000..44170f8 --- /dev/null +++ b/portfolio/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for portfolio project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'portfolio.settings') + +application = get_asgi_application() diff --git a/portfolio/settings.py b/portfolio/settings.py new file mode 100644 index 0000000..47e6b6a --- /dev/null +++ b/portfolio/settings.py @@ -0,0 +1,121 @@ +""" +Django settings for portfolio project. + +Generated by 'django-admin startproject' using Django 3.0.3. + +For more information on this file, see +https://docs.djangoproject.com/en/3.0/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/3.0/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/3.0/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'b%pfjr(9=4*fgpii(h@(j1q)3i1kj#mb*hfp4$x&8n1)n*=#8v' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + '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 = 'portfolio.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [os.path.join(BASE_DIR, 'templates')] + , + '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 = 'portfolio.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/3.0/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/3.0/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/3.0/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/3.0/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/portfolio/urls.py b/portfolio/urls.py new file mode 100644 index 0000000..ef11cef --- /dev/null +++ b/portfolio/urls.py @@ -0,0 +1,21 @@ +"""portfolio URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/3.0/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/portfolio/wsgi.py b/portfolio/wsgi.py new file mode 100644 index 0000000..b35f672 --- /dev/null +++ b/portfolio/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for portfolio 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/3.0/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'portfolio.settings') + +application = get_wsgi_application()