Skip to content

Commit 65056a0

Browse files
author
Michael Fox
committed
Added Initial App Files
Beginning Files
1 parent 2607259 commit 65056a0

33 files changed

+3484
-0
lines changed

django_project/__init__.py

Whitespace-only changes.

django_project/__init__.pyc

141 Bytes
Binary file not shown.

django_project/settings.py

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
"""
2+
Django settings for django_project project.
3+
4+
For more information on this file, see
5+
https://docs.djangoproject.com/en/1.6/topics/settings/
6+
7+
For the full list of settings and their values, see
8+
https://docs.djangoproject.com/en/1.6/ref/settings/
9+
"""
10+
11+
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
12+
import os
13+
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
14+
15+
16+
# Quick-start development settings - unsuitable for production
17+
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
18+
19+
# SECURITY WARNING: keep the secret key used in production secret!
20+
SECRET_KEY = '*******************************'
21+
22+
# SECURITY WARNING: don't run with debug turned on in production!
23+
DEBUG = True
24+
25+
TEMPLATE_DEBUG = True
26+
27+
ALLOWED_HOSTS = []
28+
29+
TEMPLATE_DIRS = (
30+
'/home/django/django_project/templates',
31+
)
32+
33+
TEMPLATE_CONTEXT_PROCESSORS = (
34+
'django.core.context_processors.request',
35+
'django.contrib.auth.context_processors.auth',
36+
)
37+
# Application definition
38+
39+
INSTALLED_APPS = (
40+
'django.contrib.admin',
41+
'django.contrib.auth',
42+
'django.contrib.contenttypes',
43+
'django.contrib.sessions',
44+
'django.contrib.messages',
45+
'django.contrib.staticfiles',
46+
'mywebgl',
47+
)
48+
49+
MIDDLEWARE_CLASSES = (
50+
'django.contrib.sessions.middleware.SessionMiddleware',
51+
'django.middleware.common.CommonMiddleware',
52+
'django.middleware.csrf.CsrfViewMiddleware',
53+
'django.contrib.auth.middleware.AuthenticationMiddleware',
54+
'django.contrib.messages.middleware.MessageMiddleware',
55+
'django.middleware.clickjacking.XFrameOptionsMiddleware',
56+
)
57+
58+
ROOT_URLCONF = 'django_project.urls'
59+
60+
WSGI_APPLICATION = 'django_project.wsgi.application'
61+
62+
# Email Setup
63+
EMAIL_USE_TLS = True
64+
EMAIL_HOST = 'smtp.gmail.com'
65+
EMAIL_PORT = 587
66+
EMAIL_HOST_USER = '*****@gmail.com'
67+
EMAIL_HOST_PASSWORD = '***********'
68+
DEFAULT_FROM_EMAIL = '*****@gmail.com'
69+
70+
# Database
71+
# https://docs.djangoproject.com/en/1.6/ref/settings/#databases
72+
73+
DATABASES = {
74+
'default': {
75+
'ENGINE': 'django.db.backends.postgresql_psycopg2',
76+
'NAME': '*******',
77+
'USER': '********',
78+
'PASSWORD': '*********',
79+
'HOST': 'localhost',
80+
'PORT': '',
81+
}
82+
}
83+
84+
# Internationalization
85+
# https://docs.djangoproject.com/en/1.6/topics/i18n/
86+
87+
LANGUAGE_CODE = 'en-us'
88+
89+
TIME_ZONE = 'UTC'
90+
91+
USE_I18N = True
92+
93+
USE_L10N = True
94+
95+
USE_TZ = True
96+
97+
# Media files
98+
MEDIA_URL = '/media/'
99+
100+
MEDIA_ROOT = '/home/django/django_project/media'
101+
102+
# Static files (CSS, JavaScript, Images)
103+
# https://docs.djangoproject.com/en/1.6/howto/static-files/
104+
105+
STATIC_URL = '/static/'
106+
107+
STATIC_ROOT = '/home/django/django_project/static'

django_project/settings.pyc

2.97 KB
Binary file not shown.

django_project/settings.pye

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
"""
2+
Django settings for django_project project.
3+
4+
For more information on this file, see
5+
https://docs.djangoproject.com/en/1.6/topics/settings/
6+
7+
For the full list of settings and their values, see
8+
https://docs.djangoproject.com/en/1.6/ref/settings/
9+
"""
10+
11+
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
12+
import os
13+
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
14+
15+
16+
# Quick-start development settings - unsuitable for production
17+
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
18+
19+
# SECURITY WARNING: keep the secret key used in production secret!
20+
SECRET_KEY = '@SECRET_KEY@'
21+
22+
# SECURITY WARNING: don't run with debug turned on in production!
23+
DEBUG = True
24+
25+
TEMPLATE_DEBUG = True
26+
27+
ALLOWED_HOSTS = []
28+
29+
30+
# Application definition
31+
32+
INSTALLED_APPS = (
33+
'django.contrib.admin',
34+
'django.contrib.auth',
35+
'django.contrib.contenttypes',
36+
'django.contrib.sessions',
37+
'django.contrib.messages',
38+
'django.contrib.staticfiles',
39+
)
40+
41+
MIDDLEWARE_CLASSES = (
42+
'django.contrib.sessions.middleware.SessionMiddleware',
43+
'django.middleware.common.CommonMiddleware',
44+
'django.middleware.csrf.CsrfViewMiddleware',
45+
'django.contrib.auth.middleware.AuthenticationMiddleware',
46+
'django.contrib.messages.middleware.MessageMiddleware',
47+
'django.middleware.clickjacking.XFrameOptionsMiddleware',
48+
)
49+
50+
ROOT_URLCONF = 'django_project.urls'
51+
52+
WSGI_APPLICATION = 'django_project.wsgi.application'
53+
54+
55+
# Database
56+
# https://docs.djangoproject.com/en/1.6/ref/settings/#databases
57+
58+
DATABASES = {
59+
'default': {
60+
'ENGINE': 'django.db.backends.postgresql_psycopg2',
61+
'NAME': 'django',
62+
'USER': 'django',
63+
'PASSWORD': 'xShuBIahBL',
64+
'HOST': 'localhost',
65+
'PORT': '',
66+
}
67+
}
68+
69+
# Internationalization
70+
# https://docs.djangoproject.com/en/1.6/topics/i18n/
71+
72+
LANGUAGE_CODE = 'en-us'
73+
74+
TIME_ZONE = 'UTC'
75+
76+
USE_I18N = True
77+
78+
USE_L10N = True
79+
80+
USE_TZ = True
81+
82+
83+
# Static files (CSS, JavaScript, Images)
84+
# https://docs.djangoproject.com/en/1.6/howto/static-files/
85+
86+
STATIC_URL = '/static/'

django_project/urls.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from django.conf.urls import patterns, include, url
2+
3+
from django.contrib import admin
4+
from mywebgl.views import ColorView
5+
admin.autodiscover()
6+
7+
urlpatterns = patterns('',
8+
# Examples:
9+
# url(r'^$', 'django_project.views.home', name='home'),
10+
# url(r'^blog/', include('blog.urls')),
11+
url(r'^webglresearchlab/', 'mywebgl.views.WebGLHomeView', name='webgl-home'),
12+
url(r'^colors/$', ColorView.as_view(), name='no-color-scheme'),
13+
url(r'^colors/(?P<schemenum>\d+)/$', ColorView.as_view(), name='color-scheme'),
14+
url(r'^admin/', include(admin.site.urls)),
15+
)

django_project/urls.pyc

865 Bytes
Binary file not shown.

django_project/wsgi.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
WSGI config for django_project project.
3+
4+
It exposes the WSGI callable as a module-level variable named ``application``.
5+
6+
For more information on this file, see
7+
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
8+
"""
9+
10+
import os
11+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_project.settings")
12+
13+
from django.core.wsgi import get_wsgi_application
14+
application = get_wsgi_application()

django_project/wsgi.pyc

612 Bytes
Binary file not shown.

manage.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env python
2+
import os
3+
import sys
4+
5+
if __name__ == "__main__":
6+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_project.settings")
7+
8+
from django.core.management import execute_from_command_line
9+
10+
execute_from_command_line(sys.argv)

0 commit comments

Comments
 (0)