- Programacao dinamica
[cascardo/eventmanager.git] / settings.py
1 # -*- coding: utf-8; -*-
2 # Django settings for eventmanager project.
3 import os
4
5 DEBUG = True
6 TEMPLATE_DEBUG = DEBUG
7
8 LOCAL_INSTANCE = os.path.dirname(__file__)
9
10 ADMINS = (
11     # ('Your Name', 'your_email@domain.com'),
12 )
13
14 MANAGERS = ADMINS
15
16 DATABASE_ENGINE = 'sqlite3'                            # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
17 DATABASE_NAME = os.path.join(LOCAL_INSTANCE, 'db')     # Or path to database file if using sqlite3.
18 DATABASE_USER = ''             # Not used with sqlite3.
19 DATABASE_PASSWORD = ''         # Not used with sqlite3.
20 DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
21 DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
22
23 # Local time zone for this installation. Choices can be found here:
24 # http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
25 # although not all variations may be possible on all operating systems.
26 # If running in a Windows environment this must be set to the same as your
27 # system time zone.
28 TIME_ZONE = 'America/Sao_Paulo'
29
30 # Language code for this installation. All choices can be found here:
31 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
32 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
33 LANGUAGE_CODE = 'pt-br'
34
35 SITE_ID = 1
36
37 # If you set this to False, Django will make some optimizations so as not
38 # to load the internationalization machinery.
39 USE_I18N = True
40
41 # Absolute path to the directory that holds media.
42 # Example: "/home/media/media.lawrence.com/"
43 MEDIA_ROOT = ''
44
45 # URL that handles the media served from MEDIA_ROOT.
46 # Example: "http://media.lawrence.com"
47 MEDIA_URL = ''
48
49 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
50 # trailing slash.
51 # Examples: "http://foo.com/media/", "/media/".
52 ADMIN_MEDIA_PREFIX = '/media/'
53
54 # Make this unique, and don't share it with anybody.
55 SECRET_KEY = '0o&_uplzm5hi&rt3pc+tv2+5)v5@*x5^#$l=r_bb#rx0gygv@l'
56
57 # List of callables that know how to import templates from various sources.
58 TEMPLATE_LOADERS = (
59     'django.template.loaders.filesystem.load_template_source',
60     'django.template.loaders.app_directories.load_template_source',
61 #     'django.template.loaders.eggs.load_template_source',
62 )
63
64 MIDDLEWARE_CLASSES = (
65     'django.middleware.common.CommonMiddleware',
66     'django.contrib.sessions.middleware.SessionMiddleware',
67     'django.contrib.auth.middleware.AuthenticationMiddleware',
68     'django.middleware.doc.XViewMiddleware',
69 )
70
71 ROOT_URLCONF = 'eventmanager.urls'
72
73 TEMPLATE_DIRS = (
74     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
75     # Always use forward slashes, even on Windows.
76     # Don't forget to use absolute paths, not relative paths.
77     os.path.join(LOCAL_INSTANCE, 'templates'),
78 )
79
80 INSTALLED_APPS = (
81     'django.contrib.auth',
82     'django.contrib.contenttypes',
83     'django.contrib.sessions',
84     #'django.contrib.sites',
85     'django.contrib.admin',
86     'eventmanager.eventos',
87     'eventmanager.conteudo',
88 )
89
90 # código mínimo já utilizado em testes de geração de boletos.
91 MIN_REF_TRAN = 10