Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding example config file

  • Loading branch information...
commit 18c5bb26d10bdce559aa6ea7b9f4c649e8a55010 1 parent 18f4f30
Adam Kaufman authored

Showing 2 changed files with 92 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  .gitignore
  2. +90 0 settings.py.example
2  .gitignore
... ... @@ -1 +1,3 @@
1 1 *.pyc
  2 +settings.py.*
  3 +!settings.py.example
90 settings.py.example
... ... @@ -0,0 +1,90 @@
  1 +# Django settings for hackerspace_management project.
  2 +
  3 +DEBUG = True
  4 +TEMPLATE_DEBUG = DEBUG
  5 +PROJECT_NAME = 'hackerspace_management'
  6 +ADMINS = (
  7 + # ('Admin', 'admin@domain.com'),
  8 +)
  9 +
  10 +MANAGERS = ADMINS
  11 +
  12 +DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
  13 +DATABASE_NAME = '/var/web/hmgr/' + PROJECT_NAME + '.db' # Or path to database file if using sqlite3.
  14 +DATABASE_USER = '' # Not used with sqlite3.
  15 +DATABASE_PASSWORD = '' # Not used with sqlite3.
  16 +DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
  17 +DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
  18 +
  19 +# Local time zone for this installation. Choices can be found here:
  20 +# http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
  21 +# although not all variations may be possible on all operating systems.
  22 +# If running in a Windows environment this must be set to the same as your
  23 +# system time zone.
  24 +TIME_ZONE = 'America/New_York EST5EDT SystemV/EST5EDT US/Eastern'
  25 +# Language code for this installation. All choices can be found here:
  26 +# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
  27 +# http://blogs.law.harvard.edu/tech/stories/storyReader$15
  28 +LANGUAGE_CODE = 'en-us'
  29 +
  30 +SITE_ID = 1
  31 +
  32 +# If you set this to False, Django will make some optimizations so as not
  33 +# to load the internationalization machinery.
  34 +USE_I18N = True
  35 +
  36 +# Absolute path to the directory that holds media.
  37 +# Example: "/home/media/media.lawrence.com/"
  38 +MEDIA_ROOT = '/var/web/hmgr/' + PROJECT_NAME + '/media/'
  39 +
  40 +# URL that handles the media served from MEDIA_ROOT.
  41 +# Example: "http://media.lawrence.com"
  42 +MEDIA_URL = 'http://apps.hive76.org/media/'
  43 +
  44 +# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  45 +# trailing slash.
  46 +# Examples: "http://foo.com/media/", "/media/".
  47 +ADMIN_MEDIA_PREFIX = '/media/'
  48 +
  49 +# Make this unique, and don't share it with anybody.
  50 +# SECRET_KEY = 'SECRET KEY'
  51 +
  52 +# List of callables that know how to import templates from various sources.
  53 +TEMPLATE_LOADERS = (
  54 + 'django.template.loaders.filesystem.load_template_source',
  55 + 'django.template.loaders.app_directories.load_template_source',
  56 +# 'django.template.loaders.eggs.load_template_source',
  57 +)
  58 +
  59 +MIDDLEWARE_CLASSES = (
  60 + 'django.middleware.common.CommonMiddleware',
  61 + 'django.contrib.sessions.middleware.SessionMiddleware',
  62 + 'django.contrib.auth.middleware.AuthenticationMiddleware',
  63 + 'django.middleware.doc.XViewMiddleware',
  64 +)
  65 +
  66 +TEMPLATE_CONTEXT_PROCESSORS = (
  67 + 'django.core.context_processors.auth',
  68 + 'django.core.context_processors.debug',
  69 + 'django.core.context_processors.i18n',
  70 + 'django.core.context_processors.request',
  71 +)
  72 +
  73 +
  74 +ROOT_URLCONF = PROJECT_NAME + '.urls'
  75 +
  76 +TEMPLATE_DIRS = (
  77 + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
  78 + # Always use forward slashes, even on Windows.
  79 + # Don't forget to use absolute paths, not relative paths.
  80 + "/var/web/hmgr/" + PROJECT_NAME + "/inventory/templates",
  81 +)
  82 +
  83 +INSTALLED_APPS = (
  84 + 'django.contrib.auth',
  85 + 'django.contrib.contenttypes',
  86 + 'django.contrib.sessions',
  87 + 'django.contrib.sites',
  88 + 'django.contrib.admin',
  89 + PROJECT_NAME + '.inventory',
  90 +)

0 comments on commit 18c5bb2

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