Skip to content

Commit 778006f

Browse files
committed
add base project
0 parents  commit 778006f

File tree

10 files changed

+165
-0
lines changed

10 files changed

+165
-0
lines changed

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Python bytecode:
2+
*.py[co]
3+
4+
# Packaging files:
5+
*.egg*
6+
7+
# SQLite3 database files:
8+
*.db
9+
*.sqlite3
10+
11+
# Logs:
12+
*.log
13+
14+
# Linux Editors
15+
*~
16+
\#*\#
17+
/.emacs.desktop
18+
/.emacs.desktop.lock
19+
.elc
20+
auto-save-list
21+
tramp
22+
.\#*
23+
*.swp
24+
*.swo

CONTRIBUTORS.txt

Whitespace-only changes.

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License
2+
3+
Copyright (c) 2010-2014 Google, Inc. http://angularjs.org
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.
22+

README.md

Whitespace-only changes.

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Django==1.6.2

tutorial/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", "tutorial.settings")
7+
8+
from django.core.management import execute_from_command_line
9+
10+
execute_from_command_line(sys.argv)

tutorial/tutorial/__init__.py

Whitespace-only changes.

tutorial/tutorial/settings.py

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
"""
2+
Django settings for tutorial 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 = '$2l8fanigl1a(e@s%9$(+aohy&#_ps!l$u&1&nl0-6aoon$3%0'
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 = 'tutorial.urls'
51+
52+
WSGI_APPLICATION = 'tutorial.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.sqlite3',
61+
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
62+
}
63+
}
64+
65+
# Internationalization
66+
# https://docs.djangoproject.com/en/1.6/topics/i18n/
67+
68+
LANGUAGE_CODE = 'en-us'
69+
70+
TIME_ZONE = 'UTC'
71+
72+
USE_I18N = True
73+
74+
USE_L10N = True
75+
76+
USE_TZ = True
77+
78+
79+
# Static files (CSS, JavaScript, Images)
80+
# https://docs.djangoproject.com/en/1.6/howto/static-files/
81+
82+
STATIC_URL = '/static/'

tutorial/tutorial/urls.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from django.conf.urls import patterns, include, url
2+
3+
from django.contrib import admin
4+
admin.autodiscover()
5+
6+
urlpatterns = patterns('',
7+
# Examples:
8+
# url(r'^$', 'tutorial.views.home', name='home'),
9+
# url(r'^blog/', include('blog.urls')),
10+
11+
url(r'^admin/', include(admin.site.urls)),
12+
)

tutorial/tutorial/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 tutorial 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", "tutorial.settings")
12+
13+
from django.core.wsgi import get_wsgi_application
14+
application = get_wsgi_application()

0 commit comments

Comments
 (0)