diff --git a/.env b/.env new file mode 100644 index 0000000..d66dd13 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +source /var/www/sgawebsite/env/bin/activate diff --git a/.gitignore b/.gitignore index 19cb45c..a392d8c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ _site .jekyll-metadata Gemfile.lock gems/ +env/ diff --git a/Gemfile b/Gemfile deleted file mode 100644 index d87e1e9..0000000 --- a/Gemfile +++ /dev/null @@ -1,29 +0,0 @@ -source "https://rubygems.org" - -# Hello! This is where you manage which Jekyll version is used to run. -# When you want to use a different version, change it below, save the -# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: -# -# bundle exec jekyll serve -# -# This will help ensure the proper Jekyll version is running. -# Happy Jekylling! -gem "jekyll", "3.5.2" - -# This is the default theme for new Jekyll sites. You may change this to anything you like. -gem "minima", "~> 2.0" -gem "hash-joiner", "~> 0.0.7" -gem "json", "~> 2.1.0" - -# If you want to use GitHub Pages, remove the "gem "jekyll"" above and -# uncomment the line below. To upgrade, run `bundle update github-pages`. -# gem "github-pages", group: :jekyll_plugins - -# If you have any plugins, put them here! -group :jekyll_plugins do - gem "jekyll-feed", "~> 0.6" -end - -# Windows does not include zoneinfo files, so bundle the tzinfo-data gem -gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] - diff --git a/_posts/2017-09-04-welcome-to-jekyll.markdown b/_posts/2017-09-04-welcome-to-jekyll.markdown deleted file mode 100644 index b8a69a2..0000000 --- a/_posts/2017-09-04-welcome-to-jekyll.markdown +++ /dev/null @@ -1,25 +0,0 @@ ---- -layout: post -title: "Welcome to Jekyll!" -date: 2017-09-04 13:44:53 -0400 -categories: jekyll update ---- -You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. - -To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works. - -Jekyll also offers powerful support for code snippets: - -{% highlight ruby %} -def print_hi(name) - puts "Hi, #{name}" -end -print_hi('Tom') -#=> prints 'Hi, Tom' to STDOUT. -{% endhighlight %} - -Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk]. - -[jekyll-docs]: https://jekyllrb.com/docs/home -[jekyll-gh]: https://github.com/jekyll/jekyll -[jekyll-talk]: https://talk.jekyllrb.com/ diff --git a/sgawebsite/main/__init__.py b/sgawebsite/main/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sgawebsite/main/admin.py b/sgawebsite/main/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/sgawebsite/main/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/sgawebsite/main/apps.py b/sgawebsite/main/apps.py new file mode 100644 index 0000000..833bff6 --- /dev/null +++ b/sgawebsite/main/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class MainConfig(AppConfig): + name = 'main' diff --git a/sgawebsite/main/migrations/__init__.py b/sgawebsite/main/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sgawebsite/main/models.py b/sgawebsite/main/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/sgawebsite/main/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/sgawebsite/main/tests.py b/sgawebsite/main/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/sgawebsite/main/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/sgawebsite/main/views.py b/sgawebsite/main/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/sgawebsite/main/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/sgawebsite/manage.py b/sgawebsite/manage.py new file mode 100755 index 0000000..5b67c94 --- /dev/null +++ b/sgawebsite/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sgawebsite.settings") + try: + from django.core.management import execute_from_command_line + except ImportError: + # The above import may fail for some other reason. Ensure that the + # issue is really that Django is missing to avoid masking other + # exceptions on Python 2. + try: + import django + except ImportError: + 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?" + ) + raise + execute_from_command_line(sys.argv) diff --git a/sgawebsite/sgawebsite/__init__.py b/sgawebsite/sgawebsite/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sgawebsite/sgawebsite/__pycache__/__init__.cpython-36.pyc b/sgawebsite/sgawebsite/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..08cf76b Binary files /dev/null and b/sgawebsite/sgawebsite/__pycache__/__init__.cpython-36.pyc differ diff --git a/sgawebsite/sgawebsite/__pycache__/settings.cpython-36.pyc b/sgawebsite/sgawebsite/__pycache__/settings.cpython-36.pyc new file mode 100644 index 0000000..de2beeb Binary files /dev/null and b/sgawebsite/sgawebsite/__pycache__/settings.cpython-36.pyc differ diff --git a/sgawebsite/sgawebsite/settings.py b/sgawebsite/sgawebsite/settings.py new file mode 100644 index 0000000..af3bba9 --- /dev/null +++ b/sgawebsite/sgawebsite/settings.py @@ -0,0 +1,120 @@ +""" +Django settings for sgawebsite project. + +Generated by 'django-admin startproject' using Django 1.11.5. + +For more information on this file, see +https://docs.djangoproject.com/en/1.11/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/1.11/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/1.11/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = '#6676vzm14drh2_a%yfywjd(k@p6btn(j#y9u1dyt9g-(8m-3-' + +# 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 = 'sgawebsite.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 = 'sgawebsite.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/1.11/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/1.11/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/1.11/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/1.11/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/sgawebsite/sgawebsite/urls.py b/sgawebsite/sgawebsite/urls.py new file mode 100644 index 0000000..d130071 --- /dev/null +++ b/sgawebsite/sgawebsite/urls.py @@ -0,0 +1,21 @@ +"""sgawebsite URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/1.11/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.conf.urls import url, include + 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) +""" +from django.conf.urls import url +from django.contrib import admin + +urlpatterns = [ + url(r'^admin/', admin.site.urls), +] diff --git a/sgawebsite/sgawebsite/wsgi.py b/sgawebsite/sgawebsite/wsgi.py new file mode 100644 index 0000000..73c3257 --- /dev/null +++ b/sgawebsite/sgawebsite/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for sgawebsite 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/1.11/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sgawebsite.settings") + +application = get_wsgi_application() diff --git a/css/about.css b/sgawebsite/static/css/about.css similarity index 100% rename from css/about.css rename to sgawebsite/static/css/about.css diff --git a/css/footer.css b/sgawebsite/static/css/footer.css similarity index 100% rename from css/footer.css rename to sgawebsite/static/css/footer.css diff --git a/css/header.css b/sgawebsite/static/css/header.css similarity index 100% rename from css/header.css rename to sgawebsite/static/css/header.css diff --git a/css/main.css b/sgawebsite/static/css/main.css similarity index 100% rename from css/main.css rename to sgawebsite/static/css/main.css diff --git a/css/responsive.css b/sgawebsite/static/css/responsive.css similarity index 100% rename from css/responsive.css rename to sgawebsite/static/css/responsive.css diff --git a/icons/favicon.ico b/sgawebsite/static/icons/favicon.ico similarity index 100% rename from icons/favicon.ico rename to sgawebsite/static/icons/favicon.ico diff --git a/icons/fb.jpg b/sgawebsite/static/icons/fb.jpg similarity index 100% rename from icons/fb.jpg rename to sgawebsite/static/icons/fb.jpg diff --git a/icons/flickr.png b/sgawebsite/static/icons/flickr.png similarity index 100% rename from icons/flickr.png rename to sgawebsite/static/icons/flickr.png diff --git a/icons/mail.jpg b/sgawebsite/static/icons/mail.jpg similarity index 100% rename from icons/mail.jpg rename to sgawebsite/static/icons/mail.jpg diff --git a/icons/menu.png b/sgawebsite/static/icons/menu.png similarity index 100% rename from icons/menu.png rename to sgawebsite/static/icons/menu.png diff --git a/icons/menu.svg b/sgawebsite/static/icons/menu.svg similarity index 100% rename from icons/menu.svg rename to sgawebsite/static/icons/menu.svg diff --git a/icons/tw.jpg b/sgawebsite/static/icons/tw.jpg similarity index 100% rename from icons/tw.jpg rename to sgawebsite/static/icons/tw.jpg diff --git a/img/DSC09503.jpg b/sgawebsite/static/img/DSC09503.jpg similarity index 100% rename from img/DSC09503.jpg rename to sgawebsite/static/img/DSC09503.jpg diff --git a/img/bg.jpg b/sgawebsite/static/img/bg.jpg similarity index 100% rename from img/bg.jpg rename to sgawebsite/static/img/bg.jpg diff --git a/img/dome-original.png b/sgawebsite/static/img/dome-original.png similarity index 100% rename from img/dome-original.png rename to sgawebsite/static/img/dome-original.png diff --git a/img/group.jpg b/sgawebsite/static/img/group.jpg similarity index 100% rename from img/group.jpg rename to sgawebsite/static/img/group.jpg diff --git a/img/logo.png b/sgawebsite/static/img/logo.png similarity index 100% rename from img/logo.png rename to sgawebsite/static/img/logo.png diff --git a/img/originals.tar.gz b/sgawebsite/static/img/originals.tar.gz similarity index 100% rename from img/originals.tar.gz rename to sgawebsite/static/img/originals.tar.gz diff --git a/img/people/2018alin.jpg b/sgawebsite/static/img/people/2018alin.jpg similarity index 100% rename from img/people/2018alin.jpg rename to sgawebsite/static/img/people/2018alin.jpg diff --git a/img/people/2018alulushi.jpg b/sgawebsite/static/img/people/2018alulushi.jpg similarity index 100% rename from img/people/2018alulushi.jpg rename to sgawebsite/static/img/people/2018alulushi.jpg diff --git a/img/people/2018jprabhal.jpg b/sgawebsite/static/img/people/2018jprabhal.jpg similarity index 100% rename from img/people/2018jprabhal.jpg rename to sgawebsite/static/img/people/2018jprabhal.jpg diff --git a/img/people/2018jwang.jpg b/sgawebsite/static/img/people/2018jwang.jpg similarity index 100% rename from img/people/2018jwang.jpg rename to sgawebsite/static/img/people/2018jwang.jpg diff --git a/img/people/2018kdu.jpg b/sgawebsite/static/img/people/2018kdu.jpg similarity index 100% rename from img/people/2018kdu.jpg rename to sgawebsite/static/img/people/2018kdu.jpg diff --git a/img/people/2018llin.jpg b/sgawebsite/static/img/people/2018llin.jpg similarity index 100% rename from img/people/2018llin.jpg rename to sgawebsite/static/img/people/2018llin.jpg diff --git a/img/people/2018nbegotka.jpg b/sgawebsite/static/img/people/2018nbegotka.jpg similarity index 100% rename from img/people/2018nbegotka.jpg rename to sgawebsite/static/img/people/2018nbegotka.jpg diff --git a/img/people/2018schappid.jpg b/sgawebsite/static/img/people/2018schappid.jpg similarity index 100% rename from img/people/2018schappid.jpg rename to sgawebsite/static/img/people/2018schappid.jpg diff --git a/img/people/2018sxie.jpg b/sgawebsite/static/img/people/2018sxie.jpg similarity index 100% rename from img/people/2018sxie.jpg rename to sgawebsite/static/img/people/2018sxie.jpg diff --git a/img/people/2018wzhang.jpg b/sgawebsite/static/img/people/2018wzhang.jpg similarity index 100% rename from img/people/2018wzhang.jpg rename to sgawebsite/static/img/people/2018wzhang.jpg diff --git a/img/people/2019amohidee.jpg b/sgawebsite/static/img/people/2019amohidee.jpg similarity index 100% rename from img/people/2019amohidee.jpg rename to sgawebsite/static/img/people/2019amohidee.jpg diff --git a/img/people/2019ephillip.jpg b/sgawebsite/static/img/people/2019ephillip.jpg similarity index 100% rename from img/people/2019ephillip.jpg rename to sgawebsite/static/img/people/2019ephillip.jpg diff --git a/img/people/2019lgersony.jpg b/sgawebsite/static/img/people/2019lgersony.jpg similarity index 100% rename from img/people/2019lgersony.jpg rename to sgawebsite/static/img/people/2019lgersony.jpg diff --git a/img/people/2019lkeesing.jpg b/sgawebsite/static/img/people/2019lkeesing.jpg similarity index 100% rename from img/people/2019lkeesing.jpg rename to sgawebsite/static/img/people/2019lkeesing.jpg diff --git a/img/people/2019mcho.jpg b/sgawebsite/static/img/people/2019mcho.jpg similarity index 100% rename from img/people/2019mcho.jpg rename to sgawebsite/static/img/people/2019mcho.jpg diff --git a/img/people/2019skazmi.jpg b/sgawebsite/static/img/people/2019skazmi.jpg similarity index 100% rename from img/people/2019skazmi.jpg rename to sgawebsite/static/img/people/2019skazmi.jpg diff --git a/img/people/2019suppalap.jpg b/sgawebsite/static/img/people/2019suppalap.jpg similarity index 100% rename from img/people/2019suppalap.jpg rename to sgawebsite/static/img/people/2019suppalap.jpg diff --git a/img/people/2020bandrade.jpg b/sgawebsite/static/img/people/2020bandrade.jpg similarity index 100% rename from img/people/2020bandrade.jpg rename to sgawebsite/static/img/people/2020bandrade.jpg diff --git a/img/people/2020dbedi.jpg b/sgawebsite/static/img/people/2020dbedi.jpg similarity index 100% rename from img/people/2020dbedi.jpg rename to sgawebsite/static/img/people/2020dbedi.jpg diff --git a/img/people/2020mdass.jpg b/sgawebsite/static/img/people/2020mdass.jpg similarity index 100% rename from img/people/2020mdass.jpg rename to sgawebsite/static/img/people/2020mdass.jpg diff --git a/img/people/2020mhuang.jpg b/sgawebsite/static/img/people/2020mhuang.jpg similarity index 100% rename from img/people/2020mhuang.jpg rename to sgawebsite/static/img/people/2020mhuang.jpg diff --git a/img/people/2020mkyryche.jpg b/sgawebsite/static/img/people/2020mkyryche.jpg similarity index 100% rename from img/people/2020mkyryche.jpg rename to sgawebsite/static/img/people/2020mkyryche.jpg diff --git a/img/people/2020rkalra.jpg b/sgawebsite/static/img/people/2020rkalra.jpg similarity index 100% rename from img/people/2020rkalra.jpg rename to sgawebsite/static/img/people/2020rkalra.jpg diff --git a/img/people/ahurowit.jpg b/sgawebsite/static/img/people/ahurowit.jpg similarity index 100% rename from img/people/ahurowit.jpg rename to sgawebsite/static/img/people/ahurowit.jpg diff --git a/img/people/convert.sh b/sgawebsite/static/img/people/convert.sh similarity index 100% rename from img/people/convert.sh rename to sgawebsite/static/img/people/convert.sh diff --git a/img/people/mrazzino.jpg b/sgawebsite/static/img/people/mrazzino.jpg similarity index 100% rename from img/people/mrazzino.jpg rename to sgawebsite/static/img/people/mrazzino.jpg diff --git a/img/profile.jpg b/sgawebsite/static/img/profile.jpg similarity index 100% rename from img/profile.jpg rename to sgawebsite/static/img/profile.jpg diff --git a/img/web-image.sh b/sgawebsite/static/img/web-image.sh similarity index 100% rename from img/web-image.sh rename to sgawebsite/static/img/web-image.sh diff --git a/js/sidebar-min.js b/sgawebsite/static/js/sidebar-min.js similarity index 100% rename from js/sidebar-min.js rename to sgawebsite/static/js/sidebar-min.js diff --git a/js/sidebar.js b/sgawebsite/static/js/sidebar.js similarity index 100% rename from js/sidebar.js rename to sgawebsite/static/js/sidebar.js diff --git a/404.html b/sgawebsite/templates/404.html similarity index 100% rename from 404.html rename to sgawebsite/templates/404.html diff --git a/about.html b/sgawebsite/templates/about.html similarity index 100% rename from about.html rename to sgawebsite/templates/about.html diff --git a/forms.html b/sgawebsite/templates/forms.html similarity index 100% rename from forms.html rename to sgawebsite/templates/forms.html diff --git a/index.html b/sgawebsite/templates/index.html similarity index 100% rename from index.html rename to sgawebsite/templates/index.html diff --git a/resources.html b/sgawebsite/templates/resources.html similarity index 100% rename from resources.html rename to sgawebsite/templates/resources.html