hello im new in this group and i hope somebody can help me.
i got template syntax error Caught IndexError while rendering: list
index out of range.
I dont know how to fix this i did a google search but i couldnt find a
solution to this.
The problem is that my view get my data perfectly i can print out the
list without any problem , but when i try to use a loop in a list of
tuples in the templates i get that error.
The problem seems to be here Exception Location: /usr/local/lib/
python2.7/dist-packages/django/db/models/query.py
The program expects a Querylist with a django model inside but instead
i got a empty list.
Sorry for my english im mexican =P.
THIS WORK WITHOUT ANY PROBLEM:
{%for dat in sdat%}
{{dat.0.orden}}
{{dat.1.sum_price}}
{%endfor%}
but using this exact loop raise the exception.
LOOP THAT CAUSE EXCEPTION:
{%for dat in sdat%}
<tr>
<td class="orden" name="{{dat.0.orden}}">{{dat.0.orden|format_n:"n"}}</
td>
<td>{{dat.0.personas|format_n:"n"}}</td>
<td>{{dat.1.sum_type_ext|format_n:"."}}</td>
<td>{{dat.1.sum_type|format_n:"."}}</td>
<td> {{dat.1.sum_price|format_n:"."}}</td>
<td>{{dat.1.tip_type_ext|format_n:"."}}</td>
<td>{{dat.1.tip_type|format_n:"."}}</td>
<td> {{dat.1.propina|format_n:"."}}</td>
<td> {{dat.1.tip_price|format_n:"."}}</td>
<td> {{dat.1.given|format_n:"."}}</td>
<td> {{dat.1.returned|format_n:"."}}</td>
</tr>
<tr>
<td colspan="14">
<table class="subtable visible {{dat.0.orden}}">
<th>Responsable</th>
<th>Tiempo inicio</th>
<th>Tiempo final</th>
<th>Estadia</th>
<th>Tipo</th>
<th>Mesas</th>
<th>Nº mesas</th>
<th>Piso</th>
</tr>
<tr>
<td>{{dat.0.username|format_n:"."}}</td>
{%if dat.0.dttm.minute < 10%}
<td>{{dat.0.dttm.hour}}:0{{dat.0.dttm.minute}}</td>
{%else%}
<td>{{dat.0.dttm.hour}}:{{dat.0.dttm.minute}}</td>
{%endif%}
{%if dat.0.dttm_end.minute < 10%}
<td>{{dat.0.dttm_end.hour}}:0{{dat.0.dttm_end.minute}}</td>
{%else%}
<td>{{dat.0.dttm_end.hour}}:{{dat.0.dttm_end.minute}}</td>
{%endif%}
<td>{{dat.0.dttm|less:dat.0.dttm_end}}</td>
{%if dat.0.orden > 0%}
<td>De momento</td>
{%else%}
<td>Reservación</td>
{%endif%}
<td>{{dat.0.no_tables|format_n:"n"}}</td>
<td>{{dat.0.tables|format_n:""}}</td>
<td></td>
</tr>
<tr>
<th>Garzón</th>
<th>ME</th>
<th>AP</th>
<th>CR</th>
<th>CV</th>
<th>BC</th>
<th>CB</th>
<th>Estado</th>
<th>Items</th>
</tr>
<tr>
<td>{{dat.0.waiter|garzon}}</td>
<td>{{dat.0.category}}</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
{%if dat.0.approved > 0%}
<td>Cerrada</td>
{%else%}
<td>Abierta</td>
{%endif%}
<td><textarea readonly="readonly">{{dat.0.items|items}}</textarea></
td>
</tr>
</table>
{%endfor%}
TemplateSyntaxError at /cc/
Caught IndexError while rendering: list index out of range
Request Method: GET
Request URL: http://127.0.0.1:8000/cc/?anio=2012&mes=4&dia=28&hora=16&id=169
Django Version: 1.3.1
Exception Type: TemplateSyntaxError
Exception Value:
Caught IndexError while rendering: list index out of range
Exception Location: /usr/local/lib/python2.7/dist-packages/django/db/
models/query.py in __getitem__, line 191
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:
['/home/luis/Escritorio/Lucia',
'/usr/local/lib/python2.7/dist-packages/GitPython-0.3.2.RC1-
py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/gitdb-0.5.4-py2.7-linux-
x86_64.egg',
'/usr/local/lib/python2.7/dist-packages/smmap-0.8.1-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/async-0.6.1-py2.7-linux-
x86_64.egg',
'/usr/local/lib/python2.7/dist-packages/rope-0.9.3-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/Pygments-1.4-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/ninja_ide-2.0_beta2-
py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/rapid_spring-0.6.0-
py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/bitarray-0.6.0-py2.7-linux-
x86_64.egg',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7',
'/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
'/usr/lib/python2.7/dist-packages/ubuntuone-client',
'/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
'/usr/lib/python2.7/dist-packages/ubuntuone-couch',
'/usr/lib/python2.7/dist-packages/ubuntuone-installer',
'/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',
'/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
Server time: Wed, 2 May 2012 00:53:56 -0500
Template error
In template /home/luis/Escritorio/Lucia/Man/plantillas/cc.html, error
at line 126
Caught IndexError while rendering: list index out of range
116 <th>Total pagado</th>
117 <th>Pago propina</th>
118 <th>Forma P.</th>
119 <th>Propina sug.</th>
120 <th>Propina</th>
121 <th>Entregado</th>
122 <th>Vuelto</th>
123 </tr>
124
125
126 {%for dat in sdat%}
127
128 <tr>
129 <td class="orden" name="{{dat.0.orden}}">{{dat.0.orden|
format_n:"n"}}</td>
130 <td>{{dat.0.personas|format_n:"n"}}</td>
131 <td>{{dat.1.sum_type_ext|format_n:"."}}</td>
132 <td>{{dat.1.sum_type|format_n:"."}}</td>
133 <td> {{dat.1.sum_price|format_n:"."}}</td>
134 <td>{{dat.1.tip_type_ext|format_n:"."}}</td>
135 <td>{{dat.1.tip_type|format_n:"."}}</td>
136 <td> {{dat.1.propina|format_n:"."}}</td>
Traceback Switch back to interactive view
Request information
GET
Variable Value
hora
u'16'
anio
u'2012'
dia
u'28'
mes
u'4'
id
u'169'
POST
No POST data
FILES
No FILES data
COOKIES
Variable Value
csrftoken
'11b17d8688d6888b42252176defbbb63'
sessionid
'b47526b7453f3466789abc4c379eb65c'
META
Variable Value
wsgi.version
(1, 0)
wsgi.multiprocess
False
RUN_MAIN
'true'
HTTP_REFERER
'http://127.0.0.1:8000/cca/'
GNOME_DESKTOP_SESSION_ID
'this-is-deprecated'
SERVER_PROTOCOL
'HTTP/1.1'
SERVER_SOFTWARE
'WSGIServer/0.1 Python/2.7.3'
SCRIPT_NAME
u''
LESSOPEN
'| /usr/bin/lesspipe %s'
REQUEST_METHOD
'GET'
LOGNAME
'luis'
USER
'luis'
QT_GRAPHICSSYSTEM
'raster'
QUERY_STRING
'anio=2012&mes=4&dia=28&hora=16&id=169'
GNOME_KEYRING_CONTROL
'/tmp/keyring-cgCtif'
DISPLAY
':0.0'
SSH_AGENT_PID
'2168'
LANG
'es_MX.UTF-8'
HTTP_ACCEPT_CHARSET
'ISO-8859-1,utf-8;q=0.7,*;q=0.3'
TERM
'xterm'
SHELL
'/bin/bash'
XDG_SESSION_PATH
'/org/freedesktop/DisplayManager/Session0'
XAUTHORITY
'/home/luis/.Xauthority'
LANGUAGE
'es_MX:es'
SESSION_MANAGER
'local/K43E:@/tmp/.ICE-unix/2124,unix/K43E:/tmp/.ICE-unix/2124'
SHLVL
'1'
MANDATORY_PATH
'/usr/share/gconf/ubuntu.mandatory.path'
wsgi.url_scheme
'http'
COMPIZ_CONFIG_PROFILE
'ubuntu'
WINDOWID
'62914566'
SERVER_PORT
'8000'
GPG_AGENT_INFO
'/tmp/keyring-cgCtif/gpg:0:1'
HOME
'/home/luis'
REMOTE_ADDR
'127.0.0.1'
CONTENT_LENGTH
''
HTTP_CONNECTION
'keep-alive'
CONTENT_TYPE
'text/plain'
wsgi.file_wrapper
''
SSH_AUTH_SOCK
'/tmp/keyring-cgCtif/ssh'
wsgi.multithread
True
PATH
'/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/
usr/bin:/sbin:/bin:/usr/games'
HTTP_CACHE_CONTROL
'max-age=0'
HTTP_USER_AGENT
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like
Gecko) Chrome/18.0.1025.168 Safari/535.19'
HTTP_HOST
'127.0.0.1:8000'
GNOME_KEYRING_PID
'2113'
XDG_SEAT_PATH
'/org/freedesktop/DisplayManager/Seat0'
LESSCLOSE
'/usr/bin/lesspipe %s %s'
CSRF_COOKIE_USED
True
XDG_CURRENT_DESKTOP
'Unity'
DBUS_SESSION_BUS_ADDRESS
'unix:abstract=/tmp/dbus-
TqUXngCYki,guid=8892df902c992e6a613e3b6600000034'
_
'/usr/bin/python'
XDG_SESSION_COOKIE
'ed2a51e19ab686acfc7fbef300000009-1335933521.927488-838960053'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
GDMSESSION
'ubuntu'
DESKTOP_SESSION
'ubuntu'
SERVER_NAME
'localhost'
XDG_CONFIG_DIRS
'/etc/xdg/xdg-ubuntu:/etc/xdg'
DEFAULTS_PATH
'/usr/share/gconf/ubuntu.default.path'
UBUNTU_MENUPROXY
'libappmenu.so'
wsgi.run_once
False
CSRF_COOKIE
'11b17d8688d6888b42252176defbbb63'
OLDPWD
'/home/luis'
GATEWAY_INTERFACE
'CGI/1.1'
HTTP_ACCEPT_LANGUAGE
'es-419,es;q=0.8'
wsgi.input
<socket._fileobject object at 0x7fb9803007d0>
wsgi.errors
<open file '<stderr>', mode 'w' at 0x7fb987b98270>
GTK_MODULES
'canberra-gtk-module:canberra-gtk-module'
XDG_DATA_DIRS
'/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/'
PWD
'/home/luis/Escritorio/Lucia'
DJANGO_SETTINGS_MODULE
'Lucia.settings'
TZ
'America/Chicago'
COLORTERM
'gnome-terminal'
LS_COLORS
'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.
7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:'
REMOTE_HOST
''
HTTP_ACCEPT_ENCODING
'gzip,deflate,sdch'
HTTP_COOKIE
'sessionid=b47526b7453f3466789abc4c379eb65c;
csrftoken=11b17d8688d6888b42252176defbbb63'
PATH_INFO
u'/cc/'
Settings
Using settings module Lucia.settings
Setting Value
USE_L10N
True
USE_THOUSAND_SEPARATOR
False
LANGUAGE_CODE
'en-us'
ROOT_URLCONF
'Lucia.urls'
MANAGERS
()
DEFAULT_CHARSET
'utf-8'
STATIC_ROOT
''
TEST_DATABASE_CHARSET
None
MESSAGE_STORAGE
'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'
DATABASE_HOST
''
IGNORABLE_404_STARTS
('/cgi-bin/', '/_vti_bin', '/_vti_inf')
SEND_BROKEN_LINK_EMAILS
False
URL_VALIDATOR_USER_AGENT
'Django/1.3.1 (http://www.djangoproject.com)'
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder')
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
COMMENTS_MODERATORS_GROUP
None
TIME_INPUT_FORMATS
('%H:%M:%S', '%H:%M')
DATABASES
{'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2',
'HOST': 'localhost',
'NAME': 'Lucia',
'OPTIONS': {},
'PASSWORD': '********************',
'PORT': '5432',
'TEST_CHARSET': None,
'TEST_COLLATION': None,
'TEST_MIRROR': None,
'TEST_NAME': None,
'TIME_ZONE': 'America/Chicago',
'USER': 'Desarrollo'}}
TEST_DATABASE_NAME
None
FILE_UPLOAD_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler',
'django.core.files.uploadhandler.TemporaryFileUploadHandler')
DEFAULT_CONTENT_TYPE
'text/html'
APPEND_SLASH
True
FIRST_DAY_OF_WEEK
0
DATABASE_ROUTERS
[]
YEAR_MONTH_FORMAT
'F Y'
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
CACHES
{'default': {'BACKEND':
'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': ''}}
SERVER_EMAIL
'root@localhost'
SESSION_COOKIE_PATH
'/'
USE_X_FORWARDED_HOST
False
IGNORABLE_404_ENDS
('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico',
'.php')
MIDDLEWARE_CLASSES
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
USE_I18N
True
THOUSAND_SEPARATOR
','
SECRET_KEY
'********************'
LANGUAGE_COOKIE_NAME
'django_language'
FILE_UPLOAD_TEMP_DIR
None
TRANSACTIONS_MANAGED
False
LOGGING_CONFIG
'django.utils.log.dictConfig'
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader')
TEMPLATE_DEBUG
True
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
TEST_DATABASE_COLLATION
None
FORCE_SCRIPT_NAME
None
CACHE_BACKEND
'locmem://'
SESSION_COOKIE_SECURE
False
CSRF_COOKIE_DOMAIN
None
FILE_CHARSET
'utf-8'
DEBUG
True
SESSION_FILE_PATH
None
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
INSTALLED_APPS
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'Lucia.Man']
LANGUAGES
(('ar', 'Arabic'),
('az', 'Azerbaijani'),
('bg', 'Bulgarian'),
('bn', 'Bengali'),
('bs', 'Bosnian'),
('ca', 'Catalan'),
('cs', 'Czech'),
('cy', 'Welsh'),
('da', 'Danish'),
('de', 'German'),
('el', 'Greek'),
('en', 'English'),
('en-gb', 'British English'),
('es', 'Spanish'),
('es-ar', 'Argentinian Spanish'),
('es-mx', 'Mexican Spanish'),
('es-ni', 'Nicaraguan Spanish'),
('et', 'Estonian'),
('eu', 'Basque'),
('fa', 'Persian'),
('fi', 'Finnish'),
('fr', 'French'),
('fy-nl', 'Frisian'),
('ga', 'Irish'),
('gl', 'Galician'),
('he', 'Hebrew'),
('hi', 'Hindi'),
('hr', 'Croatian'),
('hu', 'Hungarian'),
('id', 'Indonesian'),
('is', 'Icelandic'),
('it', 'Italian'),
('ja', 'Japanese'),
('ka', 'Georgian'),
('km', 'Khmer'),
('kn', 'Kannada'),
('ko', 'Korean'),
('lt', 'Lithuanian'),
('lv', 'Latvian'),
('mk', 'Macedonian'),
('ml', 'Malayalam'),
('mn', 'Mongolian'),
('nl', 'Dutch'),
('no', 'Norwegian'),
('nb', 'Norwegian Bokmal'),
('nn', 'Norwegian Nynorsk'),
('pa', 'Punjabi'),
('pl', 'Polish'),
('pt', 'Portuguese'),
('pt-br', 'Brazilian Portuguese'),
('ro', 'Romanian'),
('ru', 'Russian'),
('sk', 'Slovak'),
('sl', 'Slovenian'),
('sq', 'Albanian'),
('sr', 'Serbian'),
('sr-latn', 'Serbian Latin'),
('sv', 'Swedish'),
('ta', 'Tamil'),
('te', 'Telugu'),
('th', 'Thai'),
('tr', 'Turkish'),
('uk', 'Ukrainian'),
('ur', 'Urdu'),
('vi', 'Vietnamese'),
('zh-cn', 'Simplified Chinese'),
('zh-tw', 'Traditional Chinese'))
DATABASE_ENGINE
''
DATABASE_NAME
''
COMMENTS_FIRST_FEW
0
PREPEND_WWW
False
SESSION_COOKIE_HTTPONLY
False
DATABASE_PORT
''
DEBUG_PROPAGATE_EXCEPTIONS
False
MONTH_DAY_FORMAT
'F j'
LOGIN_URL
'/login'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
TIME_FORMAT
'P'
DATE_INPUT_FORMATS
('%Y-%m-%d',
'%m/%d/%Y',
'%m/%d/%y',
'%b %d %Y',
'%b %d, %Y',
'%d %b %Y',
'%d %b, %Y',
'%B %d %Y',
'%B %d, %Y',
'%d %B %Y',
'%d %B, %Y')
CSRF_COOKIE_NAME
'csrftoken'
EMAIL_HOST_PASSWORD
'********************'
PASSWORD_RESET_TIMEOUT_DAYS
'********************'
CACHE_MIDDLEWARE_ALIAS
'default'
SESSION_SAVE_EVERY_REQUEST
False
ADMIN_MEDIA_PREFIX
'/static/admin/'
NUMBER_GROUPING
0
SESSION_ENGINE
'django.contrib.sessions.backends.db'
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
COMMENTS_SKETCHY_USERS_GROUP
None
LOGIN_REDIRECT_URL
'/accounts/profile/'
LOGGING
{'disable_existing_loggers': False,
'handlers': {'mail_admins': {'class':
'django.utils.log.AdminEmailHandler',
'level': 'ERROR'}},
'loggers': {'django.request': {'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True}},
'version': 1}
CACHE_MIDDLEWARE_KEY_PREFIX
''
LOCALE_PATHS
()
TEMPLATE_STRING_IF_INVALID
''
COMMENTS_ALLOW_PROFANITIES
False
LOGOUT_URL
'/accounts/logout/'
EMAIL_USE_TLS
False
TEMPLATE_DIRS
('/home/luis/Escritorio/Lucia/Man/plantillas',)
FIXTURE_DIRS
()
EMAIL_HOST
'localhost'
DATE_FORMAT
'N j, Y'
MEDIA_ROOT
''
ADMINS
()
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'webmaster@localhost'
STATICFILES_DIRS
()
MEDIA_URL
''
DATETIME_FORMAT
'N j, Y, P'
EMAIL_SUBJECT_PREFIX
'[Django] '
SITE_ID
1
DISALLOWED_USER_AGENTS
()
ALLOWED_INCLUDE_ROOTS
()
DECIMAL_SEPARATOR
'.'
SHORT_DATE_FORMAT
'm/d/Y'
DATABASE_USER
''
TEST_RUNNER
'django.test.simple.DjangoTestSuiteRunner'
TIME_ZONE
'America/Chicago'
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
DEFAULT_TABLESPACE
''
TEMPLATE_CONTEXT_PROCESSORS
('django.contrib.auth.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_processors.static',
'django.contrib.messages.context_processors.messages')
SESSION_COOKIE_AGE
1209600
SETTINGS_MODULE
'Lucia.settings'
USE_ETAGS
False
LANGUAGES_BIDI
('he', 'ar', 'fa')
DEFAULT_INDEX_TABLESPACE
''
INTERNAL_IPS
()
STATIC_URL
'/static/'
EMAIL_PORT
25
SHORT_DATETIME_FORMAT
'm/d/Y P'
ABSOLUTE_URL_OVERRIDES
{}
DATABASE_OPTIONS
{}
CACHE_MIDDLEWARE_SECONDS
600
BANNED_IPS
()
DATETIME_INPUT_FORMATS
('%Y-%m-%d %H:%M:%S',
'%Y-%m-%d %H:%M',
'%Y-%m-%d',
'%m/%d/%Y %H:%M:%S',
'%m/%d/%Y %H:%M',
'%m/%d/%Y',
'%m/%d/%y %H:%M:%S',
'%m/%d/%y %H:%M',
'%m/%d/%y')
DATABASE_PASSWORD
'********************'
ADMIN_FOR
()
COMMENTS_BANNED_USERS_GROUP
None
EMAIL_HOST_USER
''
PROFANITIES_LIST
'********************'
You're seeing this error because you have DEBUG = True in your Django
settings file. Change that to False, and Django will display a
standard 500 page.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment