Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Helios Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Helios Server
Commits
49cabff3
Commit
49cabff3
authored
15 years ago
by
Ben Adida
Browse files
Options
Downloads
Patches
Plain Diff
updated settings sample
parent
33a04e9c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
settings.py.sample
+21
-68
21 additions, 68 deletions
settings.py.sample
with
21 additions
and
68 deletions
settings.py.sample
+
21
−
68
View file @
49cabff3
# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Django settings for google-app-engine-django project.
import os
import os
...
@@ -25,8 +10,8 @@ ADMINS = (
...
@@ -25,8 +10,8 @@ ADMINS = (
MANAGERS = ADMINS
MANAGERS = ADMINS
DATABASE_ENGINE = '
appengine'
# 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_ENGINE = '
postgresql_psycopg2'
# 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = '' # Or path to database file if using sqlite3.
DATABASE_NAME = '
helios
' # Or path to database file if using sqlite3.
DATABASE_USER = '' # Not used with sqlite3.
DATABASE_USER = '' # Not used with sqlite3.
DATABASE_PASSWORD = '' # Not used with sqlite3.
DATABASE_PASSWORD = '' # Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
...
@@ -37,7 +22,7 @@ DATABASE_PORT = '' # Set to empty string for default. Not used with
...
@@ -37,7 +22,7 @@ DATABASE_PORT = '' # Set to empty string for default. Not used with
# although not all choices may be available on all operating systems.
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# If running in a Windows environment this must be set to the same as your
# system time zone.
# system time zone.
TIME_ZONE = '
UTC
'
TIME_ZONE = '
America/San_Francisco
'
# Language code for this installation. All choices can be found here:
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
# http://www.i18nguy.com/unicode/language-identifiers.html
...
@@ -64,12 +49,7 @@ MEDIA_URL = ''
...
@@ -64,12 +49,7 @@ MEDIA_URL = ''
ADMIN_MEDIA_PREFIX = '/media/'
ADMIN_MEDIA_PREFIX = '/media/'
# Make this unique, and don't share it with anybody.
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'hvhxfm5u=^*v&doo#oq8x*eg8+1&9sxbye@=umutgn^t_sg_nx'
SECRET_KEY = 'lr-cxrs=hv*r6w2bsctmdm8(9y#yu^_epw$q#$($$uze8b*ctb'
# Ensure that email is not sent via SMTP by default to match the standard App
# Engine SDK behaviour. If you want to sent email via SMTP then add the name of
# your mailserver here.
EMAIL_HOST = ''
# List of callables that know how to import templates from various sources.
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
TEMPLATE_LOADERS = (
...
@@ -81,16 +61,7 @@ TEMPLATE_LOADERS = (
...
@@ -81,16 +61,7 @@ TEMPLATE_LOADERS = (
MIDDLEWARE_CLASSES = (
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
# 'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
# 'django.middleware.doc.XViewMiddleware',
)
TEMPLATE_CONTEXT_PROCESSORS = (
# 'django.core.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
# 'django.core.context_processors.media', # 0.97 only.
# 'django.core.context_processors.request',
)
)
ROOT_URLCONF = 'urls'
ROOT_URLCONF = 'urls'
...
@@ -101,54 +72,36 @@ TEMPLATE_DIRS = (
...
@@ -101,54 +72,36 @@ TEMPLATE_DIRS = (
os.path.join(ROOT_PATH, 'templates')
os.path.join(ROOT_PATH, 'templates')
)
)
# Change your email settings
DEFAULT_FROM_EMAIL = 'Ben Adida for Helios <ben@adida.net>'
SERVER_EMAIL = DEFAULT_FROM_EMAIL
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'votingrulez!!!ohyeah,andheliostoo'
LOGIN_URL = '/auth/'
#LOGOUT_URL = '/account/logout/'
#LOGIN_REDIRECT_URL = '/'
LOGOUT_ON_CONFIRMATION = True
INSTALLED_APPS = (
INSTALLED_APPS = (
'appengine_django',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'auth',
'auth',
'helios',
'helios',
'server_ui',
'server_ui',
)
)
##
## HELIOS
##
APPEND_SLASH = False
DEBUG = True
TEMPLATE_DEBUG = True
URL_HOST = "https://FILL-ME-IN-helios.appspot.com"
# Change your email settings
DEFAULT_FROM_EMAIL = 'Ben Adida for Helios <ben@adida.net>'
SERVER_EMAIL = DEFAULT_FROM_EMAIL
LOGIN_URL = '/auth/'
LOGOUT_ON_CONFIRMATION = True
URL_HOST = "http://localhost:8000"
# election stuff
# election stuff
SITE_TITLE = 'Helios Single Election Server'
SITE_TITLE = 'Helios Single Election Server'
SINGLE_ELECTION_TITLE = 'Helios Single Election'
SINGLE_ELECTION_UUID = 'FILL-ME-IN'
SINGLE_ELECTION_SHORT_NAME = 'FILL-ME-IN'
SINGLE_ELECTION_DESCRIPTION = 'FILL-ME-IN'
SINGLE_ELECTION_PARAMS = {
'short_name' : SINGLE_ELECTION_SHORT_NAME,
'name' : SINGLE_ELECTION_TITLE,
'description' : SINGLE_ELECTION_DESCRIPTION,
'uuid' : SINGLE_ELECTION_UUID,
'openreg': False,
'tally_type': 'homomorphic',
'ballot_type': 'homomorphic',
'use_voter_aliases': True
}
# FOOTER links
# FOOTER links
FOOTER_LINKS = [{'url':'http://usg.princeton.edu/elections', 'text':'USG Elections Center'}]
FOOTER_LINKS = [{'url':'http://usg.princeton.edu/elections', 'text':'USG Elections Center'}]
FOOTER_LOGO = False
FOOTER_LOGO = False
WELCOME_MESSAGE = "welcome"
WELCOME_MESSAGE = "welcome"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment