(13, 'Permission denied')
| Request Method: | POST |
|---|---|
| Request URL: | http://site.araguaiamotors.com.br/admin/seminovo/seminovo/add/ |
| Exception Type: | OSError |
| Exception Value: | (13, 'Permission denied') |
| Exception Location: | /usr/lib/python2.6/site-packages/django/core/files/storage.py in _save, line 157 |
| Python Executable: | /usr/bin/python |
| Python Version: | 2.6.1 |
| Python Path: | ['/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/PIL', '/home/araguaiamotors/wsgi_apps'] |
| Server time: | Seg, 16 Nov 2009 08:16:00 -0300 |
# Django settings for toyota project.
import os
LOCAL = lambda *args:os.path.join(os.path.dirname(__file__), *args)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('WebMaster', 'webmaster@*************.com.br'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'postgresql_psycopg2' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = '************' # Or path to database file if using sqlite3.
DATABASE_USER = '***********' # Not used with sqlite3.
DATABASE_PASSWORD = '*************' # Not used with sqlite3.
DATABASE_HOST = '**********************************' # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = '5432' # Set to empty string for default. Not used with sqlite3.
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# 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
# system time zone.
TIME_ZONE = 'America/Araguaina'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'pt-BR'
SITE_ID = 1
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = LOCAL('media')
#MEDIA_ROOT = "wsgi_apps/toyota/media"
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = 'wsgi_apps/toyota/media/'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/_media/'
# Make this unique, and don't share it with anybody.
SECRET_KEY = '5!q--ao$ds16a0f)89x4l88pv90e8)6k6dhh6e3+7jht$bgcs3'
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
# 'django.template.loaders.eggs.load_template_source',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
ROOT_URLCONF = 'toyota.urls'
TEMPLATE_DIRS = LOCAL('templates'
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'toyota.contato',
'toyota.empresa',
'toyota.veiculo',
'toyota.noticia',
'toyota.servico',
'toyota.seminovo',
'toyota.telefone',
'toyota.fotoseminovo',
'toyota.caracteristicaveiculo',
'toyota.dicas',
'toyota.bannercabecalho',
'toyota.cliente',
)
EMAIL_HOST = '****************'
EMAIL_HOST_USER = '*******************************'
EMAIL_HOST_PASSWORD = '********'
EMAIL_PORT = '587'
EMAIL_USE_TLS = True
EMAIL_SUBJECT_PREFIX = '**********************'