From 7a60f782995eed0352f3172f445bb35ae8ee6aa9 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Mon, 14 Sep 2015 12:28:41 +0530 Subject: Remove testapp dir, remove reference to testapp in paths, files --- yaksh/demo_templates/demo_settings.py | 88 +++++++++++++++++++++++++++++++++++ yaksh/demo_templates/demo_urls.py | 13 ++++++ 2 files changed, 101 insertions(+) create mode 100644 yaksh/demo_templates/demo_settings.py create mode 100644 yaksh/demo_templates/demo_urls.py (limited to 'yaksh/demo_templates') diff --git a/yaksh/demo_templates/demo_settings.py b/yaksh/demo_templates/demo_settings.py new file mode 100644 index 0000000..4e12463 --- /dev/null +++ b/yaksh/demo_templates/demo_settings.py @@ -0,0 +1,88 @@ +""" +Django settings for my_demo project. + +For more information on this file, see +https://docs.djangoproject.com/en/1.6/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/1.6/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.6/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'TH!S_!S_@_DUMMY_K3Y' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +TEMPLATE_DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +FIXTURE_DIRS = ('{{ fixture_dir }}') + +INSTALLED_APPS = ( + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'yaksh', + 'taggit', +) + +MIDDLEWARE_CLASSES = ( + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +) + +ROOT_URLCONF = '{{ root_urlconf }}' + +WSGI_APPLICATION = '{{ project_name }}.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/1.6/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.6/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_L10N = True + +USE_TZ = False + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/1.6/howto/static-files/ + +STATIC_URL = '/static/' + +AUTH_PROFILE_MODULE = 'yaksh.Profile' diff --git a/yaksh/demo_templates/demo_urls.py b/yaksh/demo_templates/demo_urls.py new file mode 100644 index 0000000..d99e473 --- /dev/null +++ b/yaksh/demo_templates/demo_urls.py @@ -0,0 +1,13 @@ +from django.conf.urls import patterns, include, url + +from django.contrib import admin +admin.autodiscover() + +urlpatterns = patterns('', + # Examples: + # url(r'^$', 'my_demo.views.home', name='home'), + # url(r'^blog/', include('blog.urls')), + + url(r'^admin/', include(admin.site.urls)), + url(r'^exam/', include('yaksh.urls')), +) -- cgit