'AnonymousUser' object is not iterable
Request Method: | GET |
---|---|
Request URL: | http://meteo.silvergeko.it/chart/silvergeko/1/2/ |
Django Version: | 1.11.29 |
Exception Type: | TypeError |
Exception Value: | 'AnonymousUser' object is not iterable |
Exception Location: | /usr/local/lib/python2.7/site-packages/django/utils/functional.py in inner, line 239 |
Python Executable: | /usr/local/bin/python |
Python Version: | 2.7.18 |
Python Path: | ['/home/silvergeko', '/usr/local/bin', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages'] |
Server time: | Ven, 29 Mar 2024 10:22:32 +0100 |
/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response, assigned=available_attrs(get_response))
def inner(request):
try:
response = get_response(request)...
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | TypeError("'AnonymousUser' object is not iterable",) |
get_response | <bound method WSGIHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fa5f1533d50>> |
request | <WSGIRequest: GET '/chart/silvergeko/1/2/'> |
/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function ViewMeteoChar at 0x7fa5e08cb250> |
callback_args | () |
callback_kwargs | {'r_id': u'1', 'stationid': u'silvergeko', 'year': u'2'} |
e | TypeError("'AnonymousUser' object is not iterable",) |
request | <WSGIRequest: GET '/chart/silvergeko/1/2/'> |
resolver | <RegexURLResolver 'agrimeteo.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=stazione.views.ViewMeteoChar, args=(), kwargs={'stationid': u'silvergeko', 'r_id': u'1', 'year': u'2'}, url_name=view-meteo-charts, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fa5f1533d50> |
wrapped_callback | <function ViewMeteoChar at 0x7fa5e08cb250> |
/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function ViewMeteoChar at 0x7fa5e08cb250> |
callback_args | () |
callback_kwargs | {'r_id': u'1', 'stationid': u'silvergeko', 'year': u'2'} |
e | TypeError("'AnonymousUser' object is not iterable",) |
request | <WSGIRequest: GET '/chart/silvergeko/1/2/'> |
resolver | <RegexURLResolver 'agrimeteo.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=stazione.views.ViewMeteoChar, args=(), kwargs={'stationid': u'silvergeko', 'r_id': u'1', 'year': u'2'}, url_name=view-meteo-charts, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fa5f1533d50> |
wrapped_callback | <function ViewMeteoChar at 0x7fa5e08cb250> |
/usr/local/lib/python2.7/site-packages/django/views/generic/base.py
in view
def view(request, *args, **kwargs):
self = cls(**initkwargs)
if hasattr(self, 'get') and not hasattr(self, 'head'):
self.head = self.get
self.request = request
self.args = args
self.kwargs = kwargs
return self.dispatch(request, *args, **kwargs)...
view.view_class = cls
view.view_initkwargs = initkwargs
# take name and docstring from class
update_wrapper(view, cls, updated=())
Variable | Value |
---|---|
args | () |
cls | <class 'stazione.views.ViewMeteoChar'> |
initkwargs | {} |
kwargs | {'r_id': u'1', 'stationid': u'silvergeko', 'year': u'2'} |
request | <WSGIRequest: GET '/chart/silvergeko/1/2/'> |
self | <stazione.views.ViewMeteoChar object at 0x7fa5e04189d0> |
/usr/local/lib/python2.7/site-packages/django/views/generic/base.py
in dispatch
# Try to dispatch to the right method; if a method doesn't exist,
# defer to the error handler. Also defer to the error handler if the
# request method isn't on the approved list.
if request.method.lower() in self.http_method_names:
handler = getattr(self, request.method.lower(), self.http_method_not_allowed)
else:
handler = self.http_method_not_allowed
return handler(request, *args, **kwargs)...
def http_method_not_allowed(self, request, *args, **kwargs):
logger.warning(
'Method Not Allowed (%s): %s', request.method, request.path,
extra={'status_code': 405, 'request': request}
)
Variable | Value |
---|---|
args | () |
handler | <bound method ViewMeteoChar.get of <stazione.views.ViewMeteoChar object at 0x7fa5e04189d0>> |
kwargs | {'r_id': u'1', 'stationid': u'silvergeko', 'year': u'2'} |
request | <WSGIRequest: GET '/chart/silvergeko/1/2/'> |
self | <stazione.views.ViewMeteoChar object at 0x7fa5e04189d0> |
/home/silvergeko/stazione/views.py
in get
}
if (
stazione.IsPubblica
or IsAutorizzato(stazione, request.user)
or stazione.InServizio
):
if user.is_superuser == False:
condition = get_object_or_404(Permessi, Stazione=stazione, Utente=user)...
if condition.CondizioniAccettate == False:
response["CondizioniAccettate"] = False
else:
response["CondizioniAccettate"] = True
try:
with ClusterRpcProxy(CONFIG) as rpc:
Variable | Value |
---|---|
args | () |
kwargs | {} |
listaRadio | <QuerySet [<RadioID: silvergeko a Candelo: Sensore Pluviometro e Terreno Batteria>, <RadioID: silvergeko a Candelo: Stazione Meteo>, <RadioID: silvergeko a Candelo: test satelliti>, <RadioID: silvergeko a Candelo: test1>]> |
now | datetime.datetime(2024, 3, 29, 10, 22, 31, 833474) |
r_id | u'1' |
radio | <RadioID: silvergeko a Candelo: Stazione Meteo> |
request | <WSGIRequest: GET '/chart/silvergeko/1/2/'> |
response | {'listaRadio': <QuerySet [<RadioID: silvergeko a Candelo: Sensore Pluviometro e Terreno Batteria>, <RadioID: silvergeko a Candelo: Stazione Meteo>, <RadioID: silvergeko a Candelo: test satelliti>, <RadioID: silvergeko a Candelo: test1>]>, 'messaggio': '', 'page': 'chartm', 'radio': <RadioID: silvergeko a Candelo: Stazione Meteo>, 'stazione': <Stazione: silvergeko a Candelo>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa5e0418b50>>} |
self | <stazione.views.ViewMeteoChar object at 0x7fa5e04189d0> |
stationid | u'silvergeko' |
stazione | <Stazione: silvergeko a Candelo> |
user | <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa5e0418b50>> |
year | u'2' |
/usr/local/lib/python2.7/site-packages/django/shortcuts.py
in get_object_or_404
arguments and keyword arguments are used in the get() query.
Note: Like with get(), an MultipleObjectsReturned will be raised if more than one
object is found.
"""
queryset = _get_queryset(klass)
try:
return queryset.get(*args, **kwargs)...
except AttributeError:
klass__name = klass.__name__ if isinstance(klass, type) else klass.__class__.__name__
raise ValueError(
"First argument to get_object_or_404() must be a Model, Manager, "
"or QuerySet, not '%s'." % klass__name
)
Variable | Value |
---|---|
args | () |
klass | <class 'stazione.models.Permessi'> |
kwargs | {'Stazione': <Stazione: silvergeko a Candelo>, 'Utente': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa5e0418b50>>} |
queryset | <QuerySet [<Permessi: zardo False>, <Permessi: camilo False>, <Permessi: zanacchi False>, <Permessi: venturi False>, <Permessi: camilo False>, <Permessi: isolamorosini1 True>, <Permessi: isolamorosini2 False>, <Permessi: camilo False>, <Permessi: marchesini False>, <Permessi: garbelli True>, <Permessi: camilo False>, <Permessi: zootecnica True>, <Permessi: zootecnica1 False>, <Permessi: zooagri False>, <Permessi: camilo False>, <Permessi: franciacorta True>, <Permessi: camilo False>, <Permessi: reale False>, <Permessi: ferrorosso False>, <Permessi: tema False>, '...(remaining elements truncated)...']> |
/usr/local/lib/python2.7/site-packages/django/db/models/query.py
in get
return self.query.get_count(using=self.db)
def get(self, *args, **kwargs):
"""
Performs the query and returns a single object matching the given
keyword arguments.
"""
clone = self.filter(*args, **kwargs)...
if self.query.can_filter() and not self.query.distinct_fields:
clone = clone.order_by()
num = len(clone)
if num == 1:
return clone._result_cache[0]
if not num:
Variable | Value |
---|---|
args | () |
kwargs | {'Stazione': <Stazione: silvergeko a Candelo>, 'Utente': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa5e0418b50>>} |
self | <QuerySet [<Permessi: zardo False>, <Permessi: camilo False>, <Permessi: zanacchi False>, <Permessi: venturi False>, <Permessi: camilo False>, <Permessi: isolamorosini1 True>, <Permessi: isolamorosini2 False>, <Permessi: camilo False>, <Permessi: marchesini False>, <Permessi: garbelli True>, <Permessi: camilo False>, <Permessi: zootecnica True>, <Permessi: zootecnica1 False>, <Permessi: zooagri False>, <Permessi: camilo False>, <Permessi: franciacorta True>, <Permessi: camilo False>, <Permessi: reale False>, <Permessi: ferrorosso False>, <Permessi: tema False>, '...(remaining elements truncated)...']> |
/usr/local/lib/python2.7/site-packages/django/db/models/query.py
in filter
return self._clone()
def filter(self, *args, **kwargs):
"""
Returns a new QuerySet instance with the args ANDed to the existing
set.
"""
return self._filter_or_exclude(False, *args, **kwargs)...
def exclude(self, *args, **kwargs):
"""
Returns a new QuerySet instance with NOT (args) ANDed to the existing
set.
"""
Variable | Value |
---|---|
args | () |
kwargs | {'Stazione': <Stazione: silvergeko a Candelo>, 'Utente': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa5e0418b50>>} |
self | <QuerySet [<Permessi: zardo False>, <Permessi: camilo False>, <Permessi: zanacchi False>, <Permessi: venturi False>, <Permessi: camilo False>, <Permessi: isolamorosini1 True>, <Permessi: isolamorosini2 False>, <Permessi: camilo False>, <Permessi: marchesini False>, <Permessi: garbelli True>, <Permessi: camilo False>, <Permessi: zootecnica True>, <Permessi: zootecnica1 False>, <Permessi: zooagri False>, <Permessi: camilo False>, <Permessi: franciacorta True>, <Permessi: camilo False>, <Permessi: reale False>, <Permessi: ferrorosso False>, <Permessi: tema False>, '...(remaining elements truncated)...']> |
/usr/local/lib/python2.7/site-packages/django/db/models/query.py
in _filter_or_exclude
assert self.query.can_filter(), \
"Cannot filter a query once a slice has been taken."
clone = self._clone()
if negate:
clone.query.add_q(~Q(*args, **kwargs))
else:
clone.query.add_q(Q(*args, **kwargs))...
return clone
def complex_filter(self, filter_obj):
"""
Returns a new QuerySet instance with filter_obj added to the filters.
Variable | Value |
---|---|
args | () |
clone | <QuerySet [<Permessi: zardo False>, <Permessi: camilo False>, <Permessi: zanacchi False>, <Permessi: venturi False>, <Permessi: camilo False>, <Permessi: isolamorosini1 True>, <Permessi: isolamorosini2 False>, <Permessi: camilo False>, <Permessi: marchesini False>, <Permessi: garbelli True>, <Permessi: camilo False>, <Permessi: zootecnica True>, <Permessi: zootecnica1 False>, <Permessi: zooagri False>, <Permessi: camilo False>, <Permessi: franciacorta True>, <Permessi: camilo False>, <Permessi: reale False>, <Permessi: ferrorosso False>, <Permessi: tema False>, '...(remaining elements truncated)...']> |
kwargs | {'Stazione': <Stazione: silvergeko a Candelo>, 'Utente': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa5e0418b50>>} |
negate | False |
self | <QuerySet [<Permessi: zardo False>, <Permessi: camilo False>, <Permessi: zanacchi False>, <Permessi: venturi False>, <Permessi: camilo False>, <Permessi: isolamorosini1 True>, <Permessi: isolamorosini2 False>, <Permessi: camilo False>, <Permessi: marchesini False>, <Permessi: garbelli True>, <Permessi: camilo False>, <Permessi: zootecnica True>, <Permessi: zootecnica1 False>, <Permessi: zooagri False>, <Permessi: camilo False>, <Permessi: franciacorta True>, <Permessi: camilo False>, <Permessi: reale False>, <Permessi: ferrorosso False>, <Permessi: tema False>, '...(remaining elements truncated)...']> |
/usr/local/lib/python2.7/site-packages/django/db/models/sql/query.py
in add_q
# and existing conditions. So, any existing inner join forces the join
# type to remain inner. Existing outer joins can however be demoted.
# (Consider case where rel_a is LOUTER and rel_a__col=1 is added - if
# rel_a doesn't produce any rows, then the whole condition must fail.
# So, demotion is OK.
existing_inner = set(
(a for a in self.alias_map if self.alias_map[a].join_type == INNER))
clause, _ = self._add_q(q_object, self.used_aliases)...
if clause:
self.where.add(clause, AND)
self.demote_joins(existing_inner)
def _add_q(self, q_object, used_aliases, branch_negated=False,
current_negated=False, allow_joins=True, split_subq=True):
Variable | Value |
---|---|
existing_inner | set([]) |
q_object | <Q: (AND: ('Stazione', <Stazione: silvergeko a Candelo>), ('Utente', <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa5e0418b50>>))> |
self | <django.db.models.sql.query.Query object at 0x7fa5e0684710> |
/usr/local/lib/python2.7/site-packages/django/db/models/sql/query.py
in _add_q
child, used_aliases, branch_negated,
current_negated, allow_joins, split_subq)
joinpromoter.add_votes(needed_inner)
else:
child_clause, needed_inner = self.build_filter(
child, can_reuse=used_aliases, branch_negated=branch_negated,
current_negated=current_negated, connector=connector,
allow_joins=allow_joins, split_subq=split_subq,...
)
joinpromoter.add_votes(needed_inner)
if child_clause:
target_clause.add(child_clause, connector)
needed_inner = joinpromoter.update_join_types(self)
return target_clause, needed_inner
Variable | Value |
---|---|
allow_joins | True |
branch_negated | False |
child | ('Utente', <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa5e0418b50>>) |
child_clause | <WhereNode: (AND: <django.db.models.fields.related_lookups.RelatedExact object at 0x7fa5e03cab50>)> |
connector | u'AND' |
current_negated | False |
joinpromoter | <django.db.models.sql.query.JoinPromoter object at 0x7fa5e00e9e90> |
needed_inner | set([u'stazione_permessi', u'stazione_stazione']) |
q_object | <Q: (AND: ('Stazione', <Stazione: silvergeko a Candelo>), ('Utente', <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa5e0418b50>>))> |
self | <django.db.models.sql.query.Query object at 0x7fa5e0684710> |
split_subq | True |
target_clause | <WhereNode: (AND: <django.db.models.fields.related_lookups.RelatedExact object at 0x7fa5e03cab50>)> |
used_aliases | set([u'stazione_permessi', u'stazione_stazione']) |
/usr/local/lib/python2.7/site-packages/django/db/models/sql/query.py
in build_filter
try:
field, sources, opts, join_list, path = self.setup_joins(
parts, opts, alias, can_reuse=can_reuse, allow_many=allow_many)
# Prevent iterator from being consumed by check_related_objects()
if isinstance(value, Iterator):
value = list(value)
self.check_related_objects(field, value, opts)...
# split_exclude() needs to know which joins were generated for the
# lookup parts
self._lookup_joins = join_list
except MultiJoin as e:
return self.split_exclude(filter_expr, LOOKUP_SEP.join(parts[:e.level]),
Variable | Value |
---|---|
alias | u'stazione_permessi' |
allow_joins | True |
allow_many | True |
arg | 'Utente' |
branch_negated | False |
can_reuse | set([u'stazione_permessi', u'stazione_stazione']) |
clause | <WhereNode: (AND: )> |
connector | u'AND' |
current_negated | False |
field | <django.db.models.fields.related.ForeignKey: Utente> |
filter_expr | ('Utente', <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa5e0418b50>>) |
join_list | [u'stazione_permessi', u'auth_user'] |
lookups | ['exact'] |
opts | <Options for User> |
parts | ['Utente'] |
path | [PathInfo(from_opts=<Options for Permessi>, to_opts=<Options for User>, target_fields=(<django.db.models.fields.AutoField: id>,), join_field=<django.db.models.fields.related.ForeignKey: Utente>, m2m=False, direct=True)] |
reffed_expression | False |
self | <django.db.models.sql.query.Query object at 0x7fa5e0684710> |
sources | (<django.db.models.fields.AutoField: id>,) |
split_subq | True |
used_joins | [] |
value | <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa5e0418b50>> |
/usr/local/lib/python2.7/site-packages/django/db/models/sql/query.py
in check_related_objects
raise ValueError(
'Cannot use QuerySet for "%s": Use a QuerySet for "%s".' %
(value.model._meta.object_name, opts.object_name)
)
elif hasattr(value, '_meta'):
self.check_query_object_type(value, opts, field)
elif hasattr(value, '__iter__'):
for v in value:...
self.check_query_object_type(v, opts, field)
def build_lookup(self, lookups, lhs, rhs):
"""
Tries to extract transforms and lookup from given lhs.
Variable | Value |
---|---|
field | <django.db.models.fields.related.ForeignKey: Utente> |
opts | <Options for User> |
self | <django.db.models.sql.query.Query object at 0x7fa5e0684710> |
value | <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa5e0418b50>> |
/usr/local/lib/python2.7/site-packages/django/utils/functional.py
in inner
empty = object()
def new_method_proxy(func):
def inner(self, *args):
if self._wrapped is empty:
self._setup()
return func(self._wrapped, *args)...
return inner
class LazyObject(object):
"""
A wrapper for another class that can be used to delay instantiation of the
Variable | Value |
---|---|
args | () |
func | <built-in function iter> |
self | <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa5e0418b50>> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'meteo.silvergeko.it' |
HTTP_REFERER | 'http://meteo.silvergeko.it/chart/silvergeko/1/2/' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '34.239.148.106' |
HTTP_X_FORWARDED_PROTO | 'http' |
HTTP_X_URL_SCHEME | 'https' |
PATH_INFO | u'/chart/silvergeko/1/2/' |
QUERY_STRING | '' |
RAW_URI | '/chart/silvergeko/1/2/' |
REMOTE_ADDR | '127.0.0.1' |
REMOTE_PORT | '56882' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | u'' |
SERVER_NAME | '127.0.0.1' |
SERVER_PORT | '8000' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/19.9.0' |
gunicorn.socket | <socket._socketobject object at 0x7fa5e024d9f0> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fa5e0411c10> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7fa5e0411f90> |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
agrimeteo.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | ((u'Emanuele Scopel', 'scopel.emanuele@silvergeko.it'),) |
ALLOWED_HOSTS | ['0.0.0.0', '127.0.0.1', 'meteo.silvergeko.it', 'agrimeteo-service', '95.110.131.118', '192.168.0.67', 'meteo1.silvergeko.it'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | [u'django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | u'********************' |
AUTH_USER_MODEL | u'auth.User' |
BASE_DIR | '/home/silvergeko/agrimeteo' |
CACHES | {u'default': {u'BACKEND': u'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | u'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | u'csrftoken' |
CSRF_COOKIE_PATH | u'/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | u'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | u'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'agrimeteo-mysqldb', 'NAME': 'silvergeko_dbmeteo', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'root'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | u'N j, Y, P' |
DATETIME_INPUT_FORMATS | [u'%Y-%m-%d %H:%M:%S', u'%Y-%m-%d %H:%M:%S.%f', u'%Y-%m-%d %H:%M', u'%Y-%m-%d', u'%m/%d/%Y %H:%M:%S', u'%m/%d/%Y %H:%M:%S.%f', u'%m/%d/%Y %H:%M', u'%m/%d/%Y', u'%m/%d/%y %H:%M:%S', u'%m/%d/%y %H:%M:%S.%f', u'%m/%d/%y %H:%M', u'%m/%d/%y'] |
DATE_FORMAT | u'N j, Y' |
DATE_INPUT_FORMATS | [u'%Y-%m-%d', u'%m/%d/%Y', u'%m/%d/%y', u'%b %d %Y', u'%b %d, %Y', u'%d %b %Y', u'%d %b, %Y', u'%B %d %Y', u'%B %d, %Y', u'%d %B %Y', u'%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | u'.' |
DEFAULT_CHARSET | u'utf-8' |
DEFAULT_CONTENT_TYPE | u'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | u'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | u'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'scopel.emanuele@silvergeko.it' |
DEFAULT_INDEX_TABLESPACE | u'' |
DEFAULT_TABLESPACE | u'' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | u'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'mail.wservices.ch' |
EMAIL_HOST_PASSWORD | u'********************' |
EMAIL_HOST_USER | 'info@silvergeko.it' |
EMAIL_PORT | 465 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | u'********************' |
EMAIL_SUBJECT_PREFIX | u'[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | True |
EMAIL_USE_TLS | False |
FILE_CHARSET | u'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | [u'django.core.files.uploadhandler.MemoryFileUploadHandler', u'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | '' |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | u'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ('admin_interface', 'flat_responsive', 'colorfield', 'django.contrib.admin', 'django.contrib.admindocs', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'stazione', 'boxiplus', 'bootstrap3', 'django_tables2', 'attachments', 'fileseller', 'magazzino') |
INTERNAL_IPS | [] |
LANGUAGES | [(u'af', u'Afrikaans'), (u'ar', u'Arabic'), (u'ast', u'Asturian'), (u'az', u'Azerbaijani'), (u'bg', u'Bulgarian'), (u'be', u'Belarusian'), (u'bn', u'Bengali'), (u'br', u'Breton'), (u'bs', u'Bosnian'), (u'ca', u'Catalan'), (u'cs', u'Czech'), (u'cy', u'Welsh'), (u'da', u'Danish'), (u'de', u'German'), (u'dsb', u'Lower Sorbian'), (u'el', u'Greek'), (u'en', u'English'), (u'en-au', u'Australian English'), (u'en-gb', u'British English'), (u'eo', u'Esperanto'), (u'es', u'Spanish'), (u'es-ar', u'Argentinian Spanish'), (u'es-co', u'Colombian Spanish'), (u'es-mx', u'Mexican Spanish'), (u'es-ni', u'Nicaraguan Spanish'), (u'es-ve', u'Venezuelan Spanish'), (u'et', u'Estonian'), (u'eu', u'Basque'), (u'fa', u'Persian'), (u'fi', u'Finnish'), (u'fr', u'French'), (u'fy', u'Frisian'), (u'ga', u'Irish'), (u'gd', u'Scottish Gaelic'), (u'gl', u'Galician'), (u'he', u'Hebrew'), (u'hi', u'Hindi'), (u'hr', u'Croatian'), (u'hsb', u'Upper Sorbian'), (u'hu', u'Hungarian'), (u'ia', u'Interlingua'), (u'id', u'Indonesian'), (u'io', u'Ido'), (u'is', u'Icelandic'), (u'it', u'Italian'), (u'ja', u'Japanese'), (u'ka', u'Georgian'), (u'kk', u'Kazakh'), (u'km', u'Khmer'), (u'kn', u'Kannada'), (u'ko', u'Korean'), (u'lb', u'Luxembourgish'), (u'lt', u'Lithuanian'), (u'lv', u'Latvian'), (u'mk', u'Macedonian'), (u'ml', u'Malayalam'), (u'mn', u'Mongolian'), (u'mr', u'Marathi'), (u'my', u'Burmese'), (u'nb', u'Norwegian Bokm\xe5l'), (u'ne', u'Nepali'), (u'nl', u'Dutch'), (u'nn', u'Norwegian Nynorsk'), (u'os', u'Ossetic'), (u'pa', u'Punjabi'), (u'pl', u'Polish'), (u'pt', u'Portuguese'), (u'pt-br', u'Brazilian Portuguese'), (u'ro', u'Romanian'), (u'ru', u'Russian'), (u'sk', u'Slovak'), (u'sl', u'Slovenian'), (u'sq', u'Albanian'), (u'sr', u'Serbian'), (u'sr-latn', u'Serbian Latin'), (u'sv', u'Swedish'), (u'sw', u'Swahili'), (u'ta', u'Tamil'), (u'te', u'Telugu'), (u'th', u'Thai'), (u'tr', u'Turkish'), (u'tt', u'Tatar'), (u'udm', u'Udmurt'), (u'uk', u'Ukrainian'), (u'ur', u'Urdu'), (u'vi', u'Vietnamese'), (u'zh-hans', u'Simplified Chinese'), (u'zh-hant', u'Traditional Chinese')] |
LANGUAGES_BIDI | [u'he', u'ar', u'fa', u'ur'] |
LANGUAGE_CODE | 'it-IT' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | u'django_language' |
LANGUAGE_COOKIE_PATH | u'/' |
LOCALE_PATHS | [] |
LOGGING | {'disable_existing_loggers': True, 'handlers': {'file': {'class': 'logging.FileHandler', 'filename': '/agrimeteoServices/log/agrimeteo.log', 'level': 'ERROR'}, 'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'level': 'ERROR'}}, 'loggers': {'django': {'handlers': ['file'], 'level': 'ERROR', 'propagate': False}}, 'version': 1} |
LOGGING_CONFIG | u'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | u'/accounts/profile/' |
LOGIN_URL | u'/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | ((u'Emanuele Scopel', 'scopel.emanuele@silvergeko.it'),) |
MEDIA_ROOT | '/home/silvergeko/agrimeteo/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | u'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIDDLEWARE_CLASSES | [u'django.middleware.common.CommonMiddleware', u'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | u'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'agrimeteo.urls' |
SECRET_KEY | u'********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | ('HTTP_X_FORWARDED_PROTO', 'https') |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'scopel.emanuele@silvergeko.it' |
SESSION_CACHE_ALIAS | u'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | u'sessionid' |
SESSION_COOKIE_PATH | u'/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | u'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | u'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'agrimeteo.settings' |
SHORT_DATETIME_FORMAT | u'm/d/Y P' |
SHORT_DATE_FORMAT | u'm/d/Y' |
SIGNING_BACKEND | u'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
STATICFILES_DIRS | ('/home/silvergeko/agrimeteo/common_static',) |
STATICFILES_FINDERS | [u'django.contrib.staticfiles.finders.FileSystemFinder', u'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | u'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/silvergeko/agrimeteo/static' |
STATIC_URL | '/static/' |
TELEGRAM_ADMIN | [5808051, 345727452] |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/silvergeko/agrimeteo/templates'], 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.template.context_processors.request', 'django.contrib.messages.context_processors.messages']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | u',' |
TIME_FORMAT | u'P' |
TIME_INPUT_FORMATS | [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M'] |
TIME_ZONE | 'Europe/Rome' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | False |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'agrimeteo.wsgi.application' |
X_FRAME_OPTIONS | u'SAMEORIGIN' |
YEAR_MONTH_FORMAT | u'F Y' |
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 page generated by the handler for this status code.