Initial commit
authorMaciej Tronowski <mtro@man.poznan.pl>
Tue, 10 Feb 2015 14:20:13 +0000 (15:20 +0100)
committerMaciej Tronowski <mtro@man.poznan.pl>
Tue, 10 Feb 2015 14:20:13 +0000 (15:20 +0100)
13 files changed:
.gitignore [new file with mode: 0644]
manage.py [new file with mode: 0755]
plgng/__init__.py [new file with mode: 0644]
plgng/settings.py [new file with mode: 0644]
plgng/urls.py [new file with mode: 0644]
plgng/wsgi.py [new file with mode: 0644]
qcg/__init__.py [new file with mode: 0644]
qcg/admin.py [new file with mode: 0644]
qcg/migrations/__init__.py [new file with mode: 0644]
qcg/models.py [new file with mode: 0644]
qcg/tests.py [new file with mode: 0644]
qcg/views.py [new file with mode: 0644]
requirements.txt [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..4973aa0
--- /dev/null
@@ -0,0 +1,3 @@
+.idea
+db.sqlite3
+*.pyc
diff --git a/manage.py b/manage.py
new file mode 100755 (executable)
index 0000000..7f62120
--- /dev/null
+++ b/manage.py
@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+import os
+import sys
+
+if __name__ == "__main__":
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "plgng.settings")
+
+    from django.core.management import execute_from_command_line
+
+    execute_from_command_line(sys.argv)
diff --git a/plgng/__init__.py b/plgng/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/plgng/settings.py b/plgng/settings.py
new file mode 100644 (file)
index 0000000..199542a
--- /dev/null
@@ -0,0 +1,83 @@
+"""
+Django settings for plgng project.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/1.7/topics/settings/
+
+For the full list of settings and their values, see
+https://docs.djangoproject.com/en/1.7/ref/settings/
+"""
+
+# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
+import os
+BASE_DIR = os.path.dirname(os.path.dirname(__file__))
+
+
+# Quick-start development settings - unsuitable for production
+# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
+
+# SECURITY WARNING: keep the secret key used in production secret!
+SECRET_KEY = 'x%_rlnhibsxum1m5o_c5ac@p0nw+1r0&#k!v3+52)s(d=2$5y&'
+
+# SECURITY WARNING: don't run with debug turned on in production!
+DEBUG = True
+
+TEMPLATE_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.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 = 'plgng.urls'
+
+WSGI_APPLICATION = 'plgng.wsgi.application'
+
+
+# Database
+# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
+
+DATABASES = {
+    'default': {
+        'ENGINE': 'django.db.backends.sqlite3',
+        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
+    }
+}
+
+# Internationalization
+# https://docs.djangoproject.com/en/1.7/topics/i18n/
+
+LANGUAGE_CODE = 'pl'
+
+TIME_ZONE = 'Europe/Warsaw'
+
+USE_I18N = True
+
+USE_L10N = True
+
+USE_TZ = True
+
+
+# Static files (CSS, JavaScript, Images)
+# https://docs.djangoproject.com/en/1.7/howto/static-files/
+
+STATIC_URL = '/static/'
diff --git a/plgng/urls.py b/plgng/urls.py
new file mode 100644 (file)
index 0000000..4e3c888
--- /dev/null
@@ -0,0 +1,6 @@
+from django.conf.urls import patterns, include, url
+from django.contrib import admin
+
+urlpatterns = patterns('',
+    url(r'^admin/', include(admin.site.urls)),
+)
diff --git a/plgng/wsgi.py b/plgng/wsgi.py
new file mode 100644 (file)
index 0000000..74eb9e5
--- /dev/null
@@ -0,0 +1,14 @@
+"""
+WSGI config for plgng 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.7/howto/deployment/wsgi/
+"""
+
+import os
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "plgng.settings")
+
+from django.core.wsgi import get_wsgi_application
+application = get_wsgi_application()
diff --git a/qcg/__init__.py b/qcg/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qcg/admin.py b/qcg/admin.py
new file mode 100644 (file)
index 0000000..8c38f3f
--- /dev/null
@@ -0,0 +1,3 @@
+from django.contrib import admin
+
+# Register your models here.
diff --git a/qcg/migrations/__init__.py b/qcg/migrations/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qcg/models.py b/qcg/models.py
new file mode 100644 (file)
index 0000000..71a8362
--- /dev/null
@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.
diff --git a/qcg/tests.py b/qcg/tests.py
new file mode 100644 (file)
index 0000000..7ce503c
--- /dev/null
@@ -0,0 +1,3 @@
+from django.test import TestCase
+
+# Create your tests here.
diff --git a/qcg/views.py b/qcg/views.py
new file mode 100644 (file)
index 0000000..91ea44a
--- /dev/null
@@ -0,0 +1,3 @@
+from django.shortcuts import render
+
+# Create your views here.
diff --git a/requirements.txt b/requirements.txt
new file mode 100644 (file)
index 0000000..94a0e83
--- /dev/null
@@ -0,0 +1 @@
+Django