From c652b4447c08bb5b183fd1212925521f3cc61869 Mon Sep 17 00:00:00 2001 From: tkupek Date: Wed, 20 Jan 2016 17:51:41 +0100 Subject: [PATCH] initial project --- vcpBayern_eLearning/.idea/.name | 1 + vcpBayern_eLearning/.idea/compiler.xml | 22 + .../.idea/copyright/profiles_settings.xml | 3 + vcpBayern_eLearning/.idea/encodings.xml | 6 + vcpBayern_eLearning/.idea/misc.xml | 54 ++ vcpBayern_eLearning/.idea/modules.xml | 8 + vcpBayern_eLearning/.idea/workspace.xml | 810 ++++++++++++++++++ vcpBayern_eLearning/eLearning/__init__.py | 0 vcpBayern_eLearning/eLearning/admin.py | 3 + vcpBayern_eLearning/eLearning/apps.py | 7 + .../eLearning/migrations/__init__.py | 0 vcpBayern_eLearning/eLearning/models.py | 14 + vcpBayern_eLearning/eLearning/tests.py | 3 + vcpBayern_eLearning/eLearning/views.py | 3 + vcpBayern_eLearning/manage.py | 10 + vcpBayern_eLearning/vcpBayern_eLearning.iml | 15 + .../vcpBayern_eLearning/__init__.py | 0 .../vcpBayern_eLearning/settings.py | 121 +++ .../vcpBayern_eLearning/urls.py | 21 + .../vcpBayern_eLearning/wsgi.py | 16 + 20 files changed, 1117 insertions(+) create mode 100644 vcpBayern_eLearning/.idea/.name create mode 100644 vcpBayern_eLearning/.idea/compiler.xml create mode 100644 vcpBayern_eLearning/.idea/copyright/profiles_settings.xml create mode 100644 vcpBayern_eLearning/.idea/encodings.xml create mode 100644 vcpBayern_eLearning/.idea/misc.xml create mode 100644 vcpBayern_eLearning/.idea/modules.xml create mode 100644 vcpBayern_eLearning/.idea/workspace.xml create mode 100644 vcpBayern_eLearning/eLearning/__init__.py create mode 100644 vcpBayern_eLearning/eLearning/admin.py create mode 100644 vcpBayern_eLearning/eLearning/apps.py create mode 100644 vcpBayern_eLearning/eLearning/migrations/__init__.py create mode 100644 vcpBayern_eLearning/eLearning/models.py create mode 100644 vcpBayern_eLearning/eLearning/tests.py create mode 100644 vcpBayern_eLearning/eLearning/views.py create mode 100755 vcpBayern_eLearning/manage.py create mode 100644 vcpBayern_eLearning/vcpBayern_eLearning.iml create mode 100644 vcpBayern_eLearning/vcpBayern_eLearning/__init__.py create mode 100644 vcpBayern_eLearning/vcpBayern_eLearning/settings.py create mode 100644 vcpBayern_eLearning/vcpBayern_eLearning/urls.py create mode 100644 vcpBayern_eLearning/vcpBayern_eLearning/wsgi.py diff --git a/vcpBayern_eLearning/.idea/.name b/vcpBayern_eLearning/.idea/.name new file mode 100644 index 0000000..ab52932 --- /dev/null +++ b/vcpBayern_eLearning/.idea/.name @@ -0,0 +1 @@ +vcpBayern_eLearning \ No newline at end of file diff --git a/vcpBayern_eLearning/.idea/compiler.xml b/vcpBayern_eLearning/.idea/compiler.xml new file mode 100644 index 0000000..96cc43e --- /dev/null +++ b/vcpBayern_eLearning/.idea/compiler.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/vcpBayern_eLearning/.idea/copyright/profiles_settings.xml b/vcpBayern_eLearning/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..e7bedf3 --- /dev/null +++ b/vcpBayern_eLearning/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/vcpBayern_eLearning/.idea/encodings.xml b/vcpBayern_eLearning/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ b/vcpBayern_eLearning/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/vcpBayern_eLearning/.idea/misc.xml b/vcpBayern_eLearning/.idea/misc.xml new file mode 100644 index 0000000..e854d54 --- /dev/null +++ b/vcpBayern_eLearning/.idea/misc.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/vcpBayern_eLearning/.idea/modules.xml b/vcpBayern_eLearning/.idea/modules.xml new file mode 100644 index 0000000..0d78ed8 --- /dev/null +++ b/vcpBayern_eLearning/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/vcpBayern_eLearning/.idea/workspace.xml b/vcpBayern_eLearning/.idea/workspace.xml new file mode 100644 index 0000000..09a65ea --- /dev/null +++ b/vcpBayern_eLearning/.idea/workspace.xml @@ -0,0 +1,810 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1453241040276 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No facets are configured + + + + + + + + + + + + + + + + + + + + + + vcpBayern_eLearning + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/vcpBayern_eLearning/eLearning/__init__.py b/vcpBayern_eLearning/eLearning/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/vcpBayern_eLearning/eLearning/admin.py b/vcpBayern_eLearning/eLearning/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/vcpBayern_eLearning/eLearning/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/vcpBayern_eLearning/eLearning/apps.py b/vcpBayern_eLearning/eLearning/apps.py new file mode 100644 index 0000000..a43859a --- /dev/null +++ b/vcpBayern_eLearning/eLearning/apps.py @@ -0,0 +1,7 @@ +from __future__ import unicode_literals + +from django.apps import AppConfig + + +class ElearningConfig(AppConfig): + name = 'eLearning' diff --git a/vcpBayern_eLearning/eLearning/migrations/__init__.py b/vcpBayern_eLearning/eLearning/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/vcpBayern_eLearning/eLearning/models.py b/vcpBayern_eLearning/eLearning/models.py new file mode 100644 index 0000000..7499dec --- /dev/null +++ b/vcpBayern_eLearning/eLearning/models.py @@ -0,0 +1,14 @@ +from __future__ import unicode_literals + +from django.db import models + +# Create your models here. + +class questions(models.Model): + + questionId = models.IntegerField() + questionTitle = models.CharField(max_length=100) + questionText = models.TextField() + questionAnswer = models.TextField() + + diff --git a/vcpBayern_eLearning/eLearning/tests.py b/vcpBayern_eLearning/eLearning/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/vcpBayern_eLearning/eLearning/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/vcpBayern_eLearning/eLearning/views.py b/vcpBayern_eLearning/eLearning/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/vcpBayern_eLearning/eLearning/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/vcpBayern_eLearning/manage.py b/vcpBayern_eLearning/manage.py new file mode 100755 index 0000000..433a21c --- /dev/null +++ b/vcpBayern_eLearning/manage.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vcpBayern_eLearning.settings") + + from django.core.management import execute_from_command_line + + execute_from_command_line(sys.argv) diff --git a/vcpBayern_eLearning/vcpBayern_eLearning.iml b/vcpBayern_eLearning/vcpBayern_eLearning.iml new file mode 100644 index 0000000..1d15315 --- /dev/null +++ b/vcpBayern_eLearning/vcpBayern_eLearning.iml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/vcpBayern_eLearning/vcpBayern_eLearning/__init__.py b/vcpBayern_eLearning/vcpBayern_eLearning/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/vcpBayern_eLearning/vcpBayern_eLearning/settings.py b/vcpBayern_eLearning/vcpBayern_eLearning/settings.py new file mode 100644 index 0000000..36d323a --- /dev/null +++ b/vcpBayern_eLearning/vcpBayern_eLearning/settings.py @@ -0,0 +1,121 @@ +""" +Django settings for vcpBayern_eLearning project. + +Generated by 'django-admin startproject' using Django 1.9.1. + +For more information on this file, see +https://docs.djangoproject.com/en/1.9/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/1.9/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.9/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = '_*hrxgzo(8hkrp5f8n4j9vo15acsy0b88yiy$6d5ezwi&pns(j' + +# 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_CLASSES = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'vcpBayern_eLearning.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 = 'vcpBayern_eLearning.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/1.9/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.9/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.9/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.9/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/vcpBayern_eLearning/vcpBayern_eLearning/urls.py b/vcpBayern_eLearning/vcpBayern_eLearning/urls.py new file mode 100644 index 0000000..ab393b4 --- /dev/null +++ b/vcpBayern_eLearning/vcpBayern_eLearning/urls.py @@ -0,0 +1,21 @@ +"""vcpBayern_eLearning URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/1.9/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/vcpBayern_eLearning/vcpBayern_eLearning/wsgi.py b/vcpBayern_eLearning/vcpBayern_eLearning/wsgi.py new file mode 100644 index 0000000..aa5992a --- /dev/null +++ b/vcpBayern_eLearning/vcpBayern_eLearning/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for vcpBayern_eLearning 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.9/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vcpBayern_eLearning.settings") + +application = get_wsgi_application()