From ef916597d7293d2a2d3e6b82c1b3ae2146eaae41 Mon Sep 17 00:00:00 2001 From: aliyarahman Date: Sun, 9 Nov 2014 11:13:25 -0500 Subject: [PATCH] Added app skeleton --- second_chance/app/__init__.py | 0 second_chance/app/admin.py | 3 + second_chance/app/migrations/__init__.py | 0 second_chance/app/models.py | 3 + second_chance/app/tests.py | 3 + second_chance/app/views.py | 3 + second_chance/manage.py | 10 +++ second_chance/second_chance/__init__.py | 0 second_chance/second_chance/settings.py | 83 ++++++++++++++++++++++++ second_chance/second_chance/urls.py | 10 +++ second_chance/second_chance/wsgi.py | 14 ++++ 11 files changed, 129 insertions(+) create mode 100644 second_chance/app/__init__.py create mode 100644 second_chance/app/admin.py create mode 100644 second_chance/app/migrations/__init__.py create mode 100644 second_chance/app/models.py create mode 100644 second_chance/app/tests.py create mode 100644 second_chance/app/views.py create mode 100755 second_chance/manage.py create mode 100644 second_chance/second_chance/__init__.py create mode 100644 second_chance/second_chance/settings.py create mode 100644 second_chance/second_chance/urls.py create mode 100644 second_chance/second_chance/wsgi.py diff --git a/second_chance/app/__init__.py b/second_chance/app/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/second_chance/app/admin.py b/second_chance/app/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/second_chance/app/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/second_chance/app/migrations/__init__.py b/second_chance/app/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/second_chance/app/models.py b/second_chance/app/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/second_chance/app/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/second_chance/app/tests.py b/second_chance/app/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/second_chance/app/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/second_chance/app/views.py b/second_chance/app/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/second_chance/app/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/second_chance/manage.py b/second_chance/manage.py new file mode 100755 index 0000000..29c4f9b --- /dev/null +++ b/second_chance/manage.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "second_chance.settings") + + from django.core.management import execute_from_command_line + + execute_from_command_line(sys.argv) diff --git a/second_chance/second_chance/__init__.py b/second_chance/second_chance/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/second_chance/second_chance/settings.py b/second_chance/second_chance/settings.py new file mode 100644 index 0000000..c413c64 --- /dev/null +++ b/second_chance/second_chance/settings.py @@ -0,0 +1,83 @@ +""" +Django settings for second_chance 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 = 'f4vwp(2t8(rp_05ed90caygw)v()c8!ft#hh!zjg(ai1ombv=m' + +# 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 = 'second_chance.urls' + +WSGI_APPLICATION = 'second_chance.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 = '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.7/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/second_chance/second_chance/urls.py b/second_chance/second_chance/urls.py new file mode 100644 index 0000000..4d27017 --- /dev/null +++ b/second_chance/second_chance/urls.py @@ -0,0 +1,10 @@ +from django.conf.urls import patterns, include, url +from django.contrib import admin + +urlpatterns = patterns('', + # Examples: + # url(r'^$', 'second_chance.views.home', name='home'), + # url(r'^blog/', include('blog.urls')), + + url(r'^admin/', include(admin.site.urls)), +) diff --git a/second_chance/second_chance/wsgi.py b/second_chance/second_chance/wsgi.py new file mode 100644 index 0000000..96e5f4c --- /dev/null +++ b/second_chance/second_chance/wsgi.py @@ -0,0 +1,14 @@ +""" +WSGI config for second_chance 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", "second_chance.settings") + +from django.core.wsgi import get_wsgi_application +application = get_wsgi_application()