From 67f03008bf5e81c6e2313f1bfe47dada0ce7ee3a Mon Sep 17 00:00:00 2001 From: talksik Date: Sun, 2 Jun 2019 21:22:48 -0700 Subject: [PATCH] Initial commit --- .DS_Store | Bin 0 -> 6148 bytes .gitattributes | 2 + README.md | 1 + db.sqlite3 | 0 deb_server/__init__.py | 0 .../__pycache__/__init__.cpython-37.pyc | Bin 0 -> 147 bytes .../__pycache__/settings.cpython-37.pyc | Bin 0 -> 2261 bytes deb_server/__pycache__/urls.cpython-37.pyc | Bin 0 -> 925 bytes deb_server/__pycache__/wsgi.cpython-37.pyc | Bin 0 -> 556 bytes deb_server/settings.py | 120 ++++++++++++++++++ deb_server/urls.py | 21 +++ deb_server/wsgi.py | 16 +++ manage.py | 21 +++ 13 files changed, 181 insertions(+) create mode 100644 .DS_Store create mode 100644 .gitattributes create mode 100644 README.md create mode 100644 db.sqlite3 create mode 100644 deb_server/__init__.py create mode 100644 deb_server/__pycache__/__init__.cpython-37.pyc create mode 100644 deb_server/__pycache__/settings.cpython-37.pyc create mode 100644 deb_server/__pycache__/urls.cpython-37.pyc create mode 100644 deb_server/__pycache__/wsgi.cpython-37.pyc create mode 100644 deb_server/settings.py create mode 100644 deb_server/urls.py create mode 100644 deb_server/wsgi.py create mode 100755 manage.py diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..aa715a742137c332b648c1f2e9d5eda46a2ac917 GIT binary patch literal 6148 zcmeHK!D`z;5S?|LR!Rx+p^zN+Qs}`18=LqL3c^hfxfN8}Lt7lF5{W?3I+h%hx-R;S z_7D0g{epf@`(}3=;yQ&uAcU|3vu}2H-Y$9)yBZ=A!)ekbY7vnKXKeUrt}&ixU$KTA zSqBQe#u??5QAH{BRQkJn81wiz#5VBxZ*BT9n3IAv z0xP8nopZa)q5Ye1;#oPi`}~Z@c~(}P&M(neYpy?f?D@XuZ~7m@6EzE~sG63;X!4$W zucPWDw(%RK^2<1i-)8A-)Oz|-6;+fK=|q#WBt^=HcUh6B*-%Z3q}1z#Wu;68=EeRoT&X<`i%WI0bI6fIYsvC%0e9t>6@J3Oq0c z_Ran@SqeB&4ch@h)1$_ y>&nCNT`S>7a5m1X4PH_Z=&KmHd=>A&wP9Rx01PbF1~CG2KLT0?*Ej|4RDnNFG<;M5 literal 0 HcmV?d00001 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/README.md b/README.md new file mode 100644 index 0000000..16e4a9b --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# basic_django_app diff --git a/db.sqlite3 b/db.sqlite3 new file mode 100644 index 0000000..e69de29 diff --git a/deb_server/__init__.py b/deb_server/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/deb_server/__pycache__/__init__.cpython-37.pyc b/deb_server/__pycache__/__init__.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..51458018cc108e1d2a8f371cd63854a9b3995b95 GIT binary patch literal 147 zcmZ?b<>g`k0y&>oF(CReh=2h`Aj1KOi&=m~3PUi1CZpd7=4F<|$LkeT-r}&y%}*)KNwou+ I`Wc8B05I+(8UO$Q literal 0 HcmV?d00001 diff --git a/deb_server/__pycache__/settings.cpython-37.pyc b/deb_server/__pycache__/settings.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8744c327c78e1c52e6a1f9a266f02d72263e5495 GIT binary patch literal 2261 zcmb7FTXWM!6!t~29g~DxxD+T6r4#~1DuI$thf)+<1P{JsESa>L&S+$xjl7O-Xje(2 z-@-$A>|g0m&}*OCpU|fs$#&v#m}x3mtJS%D=j_?1C_XZkU{ zDmZzC5BmcL$Qe1vL&3=#d6FL$ek;z50$KQ&Pj90HMWYOYQL%HzA}l}&%20ttsM;l? z3g=)6mSF|X!v(l#myL69$ykERb`Atsg)49suEBL%pn3T0gJ9>4Ww>Fiz)iT7#X3() z@cG9A-2PCYdE)}CfryrCa3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1&<)_SK4rHAC!{}V*Wz7q@ zLKE70PFjwax%cP1HHIJ+ydIYe&tqMuIi!2_b}_N{NC>dPpmz2+48RlZ{iay;{2|?X~Cr z104A!Upc`iaAJ0&s2#~;k4N+7&6~r$y_BH6IR5+XE+OQ16Kt)Ej}LhKYjldth)NVS z$t=OUV`$l#brJ%}s{3O{b=A&Kic#m5%yt!>lELmxOutS?W0pI+&;?t#nkhIJ9_lsJ ztg77#@{pzJI57BLIS-zNC9qA6G)A5qVA3>B(k4{g=lhIUsIT@ZE zAKmQV3y^sTLEFL)da)-2vJfIt=i}22mn_E-vIe=P*emwHu66BfOtDbGLSC8>A3bRL zi`303Tlen`KSP~857JzCeZhx~bgpVAxaWX#ZTHd6l~vcV|8Ar9`#ysC#&v0*KBiCT Ef8R^5ng9R* literal 0 HcmV?d00001 diff --git a/deb_server/settings.py b/deb_server/settings.py new file mode 100644 index 0000000..029230f --- /dev/null +++ b/deb_server/settings.py @@ -0,0 +1,120 @@ +""" +Django settings for deb_server project. + +Generated by 'django-admin startproject' using Django 2.2.1. + +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 = '@=p#hvb_l5%+(4v%e*wrz7zkd_s!7i3766jnbm2u*pqt+jg#he' + +# 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 = 'deb_server.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 = 'deb_server.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/deb_server/urls.py b/deb_server/urls.py new file mode 100644 index 0000000..70b20ff --- /dev/null +++ b/deb_server/urls.py @@ -0,0 +1,21 @@ +"""deb_server 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 + +urlpatterns = [ + path('admin/', admin.site.urls), +] diff --git a/deb_server/wsgi.py b/deb_server/wsgi.py new file mode 100644 index 0000000..e21db0e --- /dev/null +++ b/deb_server/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for deb_server 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', 'deb_server.settings') + +application = get_wsgi_application() diff --git a/manage.py b/manage.py new file mode 100755 index 0000000..0ef45fd --- /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', 'deb_server.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()