Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

finally replacing safe settings.py

  • Loading branch information...
commit b184522631256fe1e8987506a4481989ecfbab56 1 parent 8fad9ab
Tom Dyson authored

Showing 1 changed file with 75 additions and 0 deletions. Show diff stats Hide diff stats

  1. +75 0 settings.py
75 settings.py
... ... @@ -0,0 +1,75 @@
  1 +# Django settings for wordoff.
  2 +
  3 +import os
  4 +from sitesettings import *
  5 +
  6 +DEBUG = True
  7 +TEMPLATE_DEBUG = DEBUG
  8 +ROOT_URLCONF = 'urls'
  9 +
  10 +APPEND_SLASH=False
  11 +
  12 +MANAGERS = ADMINS
  13 +
  14 +# Local time zone for this installation. Choices can be found here:
  15 +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  16 +# although not all choices may be avilable on all operating systems.
  17 +# If running in a Windows environment this must be set to the same as your
  18 +# system time zone.
  19 +TIME_ZONE = 'Europe/London'
  20 +
  21 +# Language code for this installation. All choices can be found here:
  22 +# http://www.i18nguy.com/unicode/language-identifiers.html
  23 +LANGUAGE_CODE = 'en-gb'
  24 +
  25 +SITE_ID = 1
  26 +
  27 +# If you set this to False, Django will make some optimizations so as not
  28 +# to load the internationalization machinery.
  29 +USE_I18N = True
  30 +
  31 +# Absolute path to the directory that holds media.
  32 +# Example: "/home/media/media.lawrence.com/"
  33 +MEDIA_ROOT = '/usr/local/django/wychnet/static/'
  34 +
  35 +# URL that handles the media served from MEDIA_ROOT. Make sure to use a
  36 +# trailing slash if there is a path component (optional in other cases).
  37 +# Examples: "http://media.lawrence.com", "http://example.com/media/"
  38 +MEDIA_URL = 'http://10.211.55.8:8000/static/'
  39 +MEDIA_URL = 'http://localhost:8000/static/'
  40 +
  41 +# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  42 +# trailing slash.
  43 +# Examples: "http://foo.com/media/", "/media/".
  44 +ADMIN_MEDIA_PREFIX = '/media/'
  45 +
  46 +# List of callables that know how to import templates from various sources.
  47 +TEMPLATE_LOADERS = (
  48 + 'django.template.loaders.filesystem.load_template_source',
  49 + 'django.template.loaders.app_directories.load_template_source',
  50 +# 'django.template.loaders.eggs.load_template_source',
  51 +)
  52 +
  53 +MIDDLEWARE_CLASSES = (
  54 + 'django.middleware.common.CommonMiddleware',
  55 + 'django.contrib.sessions.middleware.SessionMiddleware',
  56 + 'django.contrib.auth.middleware.AuthenticationMiddleware',
  57 + 'django.middleware.doc.XViewMiddleware',
  58 +)
  59 +
  60 +ROOT_PATH = os.path.dirname(__file__)
  61 +
  62 +TEMPLATE_DIRS = (
  63 + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
  64 + # Always use forward slashes, even on Windows.
  65 + # Don't forget to use absolute paths, not relative paths.
  66 + ROOT_PATH + '/templates',
  67 +)
  68 +
  69 +INSTALLED_APPS = (
  70 + 'django.contrib.auth',
  71 + 'django.contrib.contenttypes',
  72 + 'django.contrib.sessions',
  73 + 'django.contrib.sites',
  74 + 'django.contrib.admin',
  75 +)

0 comments on commit b184522

Please sign in to comment.
Something went wrong with that request. Please try again.