Skip to content
This repository was archived by the owner on Aug 27, 2018. It is now read-only.

Commit 8cd1014

Browse files
PRFPRF
PRF
authored and
PRF
committed
Init ChannelWorm website. Fixed #17, #37
1 parent 4ebe92d commit 8cd1014

File tree

942 files changed

+250715
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

942 files changed

+250715
-0
lines changed

ChannelWorm/channelworm/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# -*- coding: utf-8 -*-
Loading
Loading
Loading
Loading
Loading
Loading

ChannelWorm/channelworm/settings.py

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
"""
2+
Django settings for channel_worm project.
3+
4+
Generated by 'django-admin startproject' using Django 1.8.1.
5+
6+
For more information on this file, see
7+
https://docs.djangoproject.com/en/1.8/topics/settings/
8+
9+
For the full list of settings and their values, see
10+
https://docs.djangoproject.com/en/1.8/ref/settings/
11+
"""
12+
13+
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
14+
import os
15+
16+
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
17+
18+
19+
# Quick-start development settings - unsuitable for production
20+
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
21+
22+
# SECURITY WARNING: keep the secret key used in production secret!
23+
SECRET_KEY = 'd0vy02-g#nq@lg!s%5v$w(jilj@af791#1-3k9y7ea3c)djj!w'
24+
25+
# SECURITY WARNING: don't run with debug turned on in production!
26+
DEBUG = True
27+
28+
ALLOWED_HOSTS = []
29+
30+
31+
# Application definition
32+
33+
INSTALLED_APPS = (
34+
'django.contrib.admin',
35+
'django.contrib.auth',
36+
'django.contrib.contenttypes',
37+
'django.contrib.sessions',
38+
'django.contrib.messages',
39+
'django.contrib.staticfiles',
40+
'digitizer',
41+
'ion_channel'
42+
)
43+
44+
MIDDLEWARE_CLASSES = (
45+
'django.contrib.sessions.middleware.SessionMiddleware',
46+
'django.middleware.common.CommonMiddleware',
47+
'django.middleware.csrf.CsrfViewMiddleware',
48+
'django.contrib.auth.middleware.AuthenticationMiddleware',
49+
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
50+
'django.contrib.messages.middleware.MessageMiddleware',
51+
'django.middleware.clickjacking.XFrameOptionsMiddleware',
52+
'django.middleware.security.SecurityMiddleware',
53+
)
54+
55+
ROOT_URLCONF = 'channelworm.urls'
56+
57+
TEMPLATES = [
58+
{
59+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
60+
'DIRS': [os.path.join(os.path.dirname(__file__), 'templates', )],
61+
'APP_DIRS': True,
62+
'OPTIONS': {
63+
'context_processors': [
64+
'django.template.context_processors.debug',
65+
'django.template.context_processors.request',
66+
'django.contrib.auth.context_processors.auth',
67+
'django.contrib.messages.context_processors.messages',
68+
'django.template.context_processors.media',
69+
],
70+
},
71+
},
72+
]
73+
74+
WSGI_APPLICATION = 'channelworm.wsgi.application'
75+
76+
77+
# Database
78+
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
79+
80+
DATABASES = {
81+
'default': {
82+
'ENGINE': 'django.db.backends.sqlite3',
83+
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
84+
}
85+
}
86+
87+
88+
# Internationalization
89+
# https://docs.djangoproject.com/en/1.8/topics/i18n/
90+
91+
LANGUAGE_CODE = 'en-us'
92+
93+
TIME_ZONE = 'UTC'
94+
95+
USE_I18N = True
96+
97+
USE_L10N = True
98+
99+
USE_TZ = True
100+
101+
102+
# Static files (CSS, JavaScript, Images)
103+
# https://docs.djangoproject.com/en/1.8/howto/static-files/
104+
105+
STATIC_URL = '/static/'
106+
107+
# Pycharm detected this
108+
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
109+
TEMPLATE_DIRS = (
110+
os.path.join(PROJECT_ROOT, 'templates').replace('\\', '/'),
111+
)
112+
113+
# TEMPLATE_LOADERS = (
114+
# 'django.template.loaders.filesystem.Loader',
115+
# 'django.template.loaders.app_directories.Loader',
116+
# )
117+
118+
# Additional locations of static files
119+
STATICFILES_DIRS = (
120+
# Put strings here, like "/home/html/static" or "C:/www/django/static".
121+
# Always use forward slashes, even on Windows.
122+
# Don't forget to use absolute paths, not relative paths.
123+
os.path.join(
124+
os.path.dirname(__file__),
125+
'static',
126+
),
127+
)
128+
129+
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
130+
MEDIA_URL = '/media/'

0 commit comments

Comments
 (0)