@@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
#
# Copyright (c) 2010-2012 Cidadania S. Coop. Galega
#
# This file is part of e-cidadania.
#
# e-cidadania is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# e-cidadania is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with e-cidadania. If not, see <http://www.gnu.org/licenses/>.

DEBUG = False

# Registration mail settings
#EMAIL_HOST = ""
#EMAIL_PORT=
#EMAIL_HOST_USER=""
#EMAIL_HOST_PASSWORD=""
#DEFAULT_FROM_EMAIL = ""

# Time and zone configuration
TIME_ZONE = 'Europe/Madrid'
LANGUAGE_CODE = 'es-es'

# Cache backend.
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'unique-snowflake'
}
}

# Who will we alert?
ADMINS = (
('YourAdmin', 'youradmin@adminmail.com'),
)
MANAGERS = ADMINS


# Make this unique, and don't share it with anybody.
SECRET_KEY = '8nwcwmtau*bnu0u=shmdkda^-tpn55ch%qeqc8xn#-77r8c*0a'

# Database configuration. Default: sqlite3
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'e_cidadania/db/production.db',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
@@ -82,7 +82,7 @@

#(r'^api/', include('e_cidadania.apps.api.urls')),

# Static content #### FOR DEVELOPMENT!! ####
# # Static content #### FOR DEVELOPMENT!! ####
url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': 'static'}),

File renamed without changes.
File renamed without changes.
Empty file.
@@ -0,0 +1,50 @@
# -*- coding: utf-8 -*-
#
# Copyright (c) 2010-2012 Cidadania S. Coop. Galega
#
# This file is part of e-cidadania.
#
# e-cidadania is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# e-cidadania is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with e-cidadania. If not, see <http://www.gnu.org/licenses/>.

"""
Change environment according to the parameters.
"""

import os, sys

from django.core.management.base import BaseCommand, CommandError
from django.core import management


class Command(BaseCommand):

"""
"""
args = "<settings_file> [development, production]"
help = "This command will run the django development server with the \
specified configuration file, which can be 'production' or 'development'."

def handle(self, *args, **options):

"""
"""
if args[0] == 'development':
self.stdout.write('Running development settings...\n')
management.call_command('runserver', settings="e_cidadania.settings.development", verbosity=0)
elif args[0] == 'production':
self.stdout.write('Running production settings...\n')
management.call_command('runserver', settings="e_cidadania.settings.production", verbosity=0)
else:
self.stdout.write("You didn't select a valid option. Valid options are: development, production.\n")
sys.exit(0)
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -2,6 +2,8 @@
import os, sys

if __name__ == "__main__":
manage_cwd = os.getcwd()
sys.path.insert(0, manage_cwd + '/e_cidadania')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "e_cidadania.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)