__init__() takes at least 2 arguments (1 given)
Request Method: | GET |
---|---|
Request URL: | http://news.uninp.edu.rs/ |
Django Version: | 1.6.6 |
Exception Type: | TypeError |
Exception Value: | __init__() takes at least 2 arguments (1 given) |
Exception Location: | /home/uninp/news/v/src/roalib-master/roalib/models.py in Post, line 64 |
Python Executable: | /home/uninp/news/v/bin/python |
Python Version: | 2.7.9 |
Python Path: | ['/home/uninp/news/news', '/home/uninp/news/v/bin', '/home/uninp/news/v/src/django-advnewsticker-master', '/home/uninp/news/v/src/django-cas-master', '/home/uninp/news/v/src/django-categories-master', '/home/uninp/news/v/src/django-category-content-master', '/home/uninp/news/v/src/django-ckeditor-filer-master', '/home/uninp/news/v/src/django-content-master', '/home/uninp/news/v/src/django-content-ad-master', '/home/uninp/news/v/src/django-content-page-master', '/home/uninp/news/v/src/django-content-post-master', '/home/uninp/news/v/src/django-fbgallery-master', '/home/uninp/news/v/src/django-hitcount-master', '/home/uninp/news/v/src/django-nav-tree-master', '/home/uninp/news/v/src/django-roa-master', '/home/uninp/news/v/src/roalib-master', '/home/uninp/news/v/src/themes-master', '/home/uninp/news/news', '/home/uninp/news/v/lib/python2.7', '/home/uninp/news/v/lib/python2.7/plat-x86_64-linux-gnu', '/home/uninp/news/v/lib/python2.7/lib-tk', '/home/uninp/news/v/lib/python2.7/lib-old', '/home/uninp/news/v/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/home/uninp/news/v/local/lib/python2.7/site-packages'] |
Server time: | uto., 19 Mar. 2024 12:24:43 +0100 |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
raise ValueError("The view %s.%s didn't return an HttpResponse object." % (callback.__module__, view_name))
# If the response supports deferred rendering, apply template
# response middleware and then render the response
if hasattr(response, 'render') and callable(response.render):
for middleware_method in self._template_response_middleware:
response = middleware_method(request, response)
response = response.render()...
except http.Http404 as e:
logger.warning('Not Found: %s', request.path,
extra={
'status_code': 404,
'request': request
Variable | Value |
---|---|
callback_args | () |
resolver_match | ResolverMatch(func=<function TemplateView at 0x7f07e9dddcf8>, args=(), kwargs={}, url_name='home-page', app_name='None', namespace='') |
middleware_method | <bound method CASMiddleware.process_view of <django_cas.middleware.CASMiddleware object at 0x7f07ec271d10>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f07edc31790> |
request | "<WSGIRequest\npath:/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{u'CSRF_COOKIE': u'HGr3kvjglyHkgGExCc5Dk8mwHl8oxDhj',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': 'news.uninp.edu.rs',\n 'HTTP_USER_AGENT': 'claudebot',\n 'HTTP_X_FORWARDED_FOR': '54.224.52.210',\n 'PATH_INFO': u'/',\n 'QUERY_STRING': '',\n 'RAW_URI': '/',\n 'REMOTE_ADDR': '',\n 'REQUEST_METHOD': 'GET',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'news.uninp.edu.rs',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SOFTWARE': 'gunicorn/19.4.5',\n 'gunicorn.socket': <socket._socketobject object at 0x7f07ead55de0>,\n 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f07e94a8f50>,\n 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>,\n 'wsgi.input': <gunicorn.http.body.Body object at 0x7f07e94e7850>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
callback | <function TemplateView at 0x7f07e9dddcf8> |
wrapped_callback | <function TemplateView at 0x7f07e9dddcf8> |
resolver | <RegexURLResolver 'news.urls' (None:None) ^/> |
callback_kwargs | {} |
response | <django.template.response.TemplateResponse object at 0x7f07e948f6d0> |
urlconf | 'news.urls' |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Returns the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content...
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
self | <django.template.response.TemplateResponse object at 0x7f07e948f6d0> |
retval | <django.template.response.TemplateResponse object at 0x7f07e948f6d0> |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/response.py
in rendered_content
"""Returns the freshly rendered content for the template and context
described by the TemplateResponse.
This *does not* set the final content of the response. To set the
response content, you must either call render(), or set the
content explicitly using the value of this property.
"""
template = self.resolve_template(self.template_name)...
context = self.resolve_context(self.context_data)
content = template.render(context)
return content
def add_post_render_callback(self, callback):
"""Adds a new post-rendering callback.
Variable | Value |
---|---|
self | <django.template.response.TemplateResponse object at 0x7f07e948f6d0> |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/response.py
in resolve_template
del obj_dict[attr]
return obj_dict
def resolve_template(self, template):
"Accepts a template object, path-to-template or list of paths"
if isinstance(template, (list, tuple)):
return loader.select_template(template)...
elif isinstance(template, six.string_types):
return loader.get_template(template)
else:
return template
def resolve_context(self, context):
Variable | Value |
---|---|
self | <django.template.response.TemplateResponse object at 0x7f07e948f6d0> |
template | ['home_page.html'] |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/loader.py
in select_template
def select_template(template_name_list):
"Given a list of template names, returns the first that can be loaded."
if not template_name_list:
raise TemplateDoesNotExist("No template names provided")
not_found = []
for template_name in template_name_list:
try:
return get_template(template_name)...
except TemplateDoesNotExist as e:
if e.args[0] not in not_found:
not_found.append(e.args[0])
continue
# If we get here, none of the templates could be loaded
raise TemplateDoesNotExist(', '.join(not_found))
Variable | Value |
---|---|
template_name | 'home_page.html' |
not_found | [] |
template_name_list | ['home_page.html'] |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/loader.py
in get_template
raise TemplateDoesNotExist(name)
def get_template(template_name):
"""
Returns a compiled Template object for the given template name,
handling template inheritance recursively.
"""
template, origin = find_template(template_name)...
if not hasattr(template, 'render'):
# template needs to be compiled
template = get_template_from_string(template, origin, template_name)
return template
def get_template_from_string(source, origin=None, name=None):
Variable | Value |
---|---|
template_name | 'home_page.html' |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/loader.py
in find_template
for loader_name in settings.TEMPLATE_LOADERS:
loader = find_template_loader(loader_name)
if loader is not None:
loaders.append(loader)
template_source_loaders = tuple(loaders)
for loader in template_source_loaders:
try:
source, display_name = loader(name, dirs)...
return (source, make_origin(display_name, loader, name, dirs))
except TemplateDoesNotExist:
pass
raise TemplateDoesNotExist(name)
def get_template(template_name):
Variable | Value |
---|---|
dirs | None |
name | 'home_page.html' |
loader | <django.template.loaders.filesystem.Loader object at 0x7f07e94b3450> |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/loader.py
in __call__
class BaseLoader(object):
is_usable = False
def __init__(self, *args, **kwargs):
pass
def __call__(self, template_name, template_dirs=None):
return self.load_template(template_name, template_dirs)...
def load_template(self, template_name, template_dirs=None):
source, display_name = self.load_template_source(template_name, template_dirs)
origin = make_origin(display_name, self.load_template_source, template_name, template_dirs)
try:
template = get_template_from_string(source, origin, template_name)
Variable | Value |
---|---|
template_dirs | None |
template_name | 'home_page.html' |
self | <django.template.loaders.filesystem.Loader object at 0x7f07e94b3450> |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/loader.py
in load_template
def __call__(self, template_name, template_dirs=None):
return self.load_template(template_name, template_dirs)
def load_template(self, template_name, template_dirs=None):
source, display_name = self.load_template_source(template_name, template_dirs)
origin = make_origin(display_name, self.load_template_source, template_name, template_dirs)
try:
template = get_template_from_string(source, origin, template_name)...
return template, None
except TemplateDoesNotExist:
# If compiling the template we found raises TemplateDoesNotExist, back off to
# returning the source and display name for the template we were asked to load.
# This allows for correct identification (later) of the actual template that does
# not exist.
Variable | Value |
---|---|
origin | <django.template.loader.LoaderOrigin object at 0x7f07e935da90> |
template_dirs | None |
display_name | u'/home/uninp/news/news/news/templates/home_page.html' |
template_name | 'home_page.html' |
self | <django.template.loaders.filesystem.Loader object at 0x7f07e94b3450> |
source | u'{% extends "base.html" %}\n{% load post_tags thumbnail roa_tags fbgallery_tags %}\n\n{% block title %}Po\u010detna{% endblock %}\n\n{% block extrastyle %}\n<style type="text/css">\n/*#####################\nAdditional Styles (required)\n#####################*/\n.carousel-control.left, .carousel-control.right {\n\tbackground-image:none !important;\n}\n.carousel-inner .item img {\n\twidth:100%;\n\theight:100%;\n}\n.carousel-indicators {\n\ttop:5px;\n\tleft:5px;\n\twidth:auto;\n\theight: 30px;\n\tpadding:5px 15px;\n\tmargin-left:0;\n\tbackground:rgba(0,0,0,0.7);\n}\n.carousel-indicators li {\n\tborder-radius:0;\n\twidth:10px;\n\theight:10px;\n\tbackground:#fff;\n}\n.carousel-indicators .active {\n\tbackground:#39b3d7;\n\tborder-color:#39b3d7;\n}\n\n.carousel-control {\n\tbackground:\t#39b3d7;\n\tcolor:#fff;\n\tpadding: 4px 0;\n\twidth:26px;\n\theight: 40px;\n\tleft:auto;\n\ttop:12px;\n\topacity:0.85;\n}\n.carousel-control.right {\n\tright:10px;\n}\n\n.carousel-control.left {\n\tright: 46px;\n}\n.carousel-caption {\n\tbottom:0;\n\tleft:0;\n\tpadding:10px;\n\tbackground:rgba(0,0,0,0.70);\n\ttext-align:left;\n\theight: auto;\n\twidth: 100%;\n \tmax-height:auto;\n\toverflow: hidden;\n}\n.carousel-caption a {\n\tcolor: #fff\n}\n.carousel-caption h4 {\n\tmargin: 0 0 5px 0\n}\n.carousel-caption p {\n\tmargin: 0\n}\n.widget {\n\tmargin: 15px 0;\n\tpadding: 0\n}\n.latest-small {\n\toverflow: hidden;\n\ttext-align: center;\n}\n.latest-small img {\n\twidth: 100%;\n\theight: 135px;\n\tborder: 1px solid #ccc\n}\n.latest-small h5 {\n\ttext-align: left;\n\tfont-weight: normal\n}\n.profile-image {\n\twidth: auto !important;\n\tmax-width: 200px !important;\n\tmax-height: 190px;\n\n}\n.profile-info {\n\tfloat: left;\n\tmargin: 0 10px\n}\n.profile-info h4 {\n\tmargin: 0;\n}\n.h-info {\n\tcolor: #888;\n\tfont-weight: normal;\n}\n.widget .box {\n\theight: 220px;\n\tborder-right: 1px solid #ccc;\n\toverflow: auto;\n}\n.widget .box img {\n\tborder: 1px solid #ccc;\n\twidth: 100%;\n}\n.sidebox {\n\toverflow: auto;\n\tborder-top: 1px solid #7E0000;\n\tmargin-bottom: 20px\n}\n.latest-news {\n\tlist-style-type: none;\n\tpadding: 0\n}\n.latest-news li {\n\tmargin: 0 0 10px 5px\n}\n.latest-news .date {\n\tdisplay: block;\n\tcolor: #ccc;\n\tfont-size: 11px\n}\n@media (min-width: 320px) and (max-width: 767px) {\n\t.latest-small img {\n\t\twidth: 100%;\n\t\theight: 100%\n\t}\n\t.latest-small h5 {\n\t\tfont-size: 13px\n\t}\n\t.footer-logo {\n\t\tmargin:auto;\n\t}\n}\n</style>\n{% endblock %}\n\n{% block content %}\n{{ block.super }}\n<div class="container">\n\t<div class="col-md-9">\n\t\t{% get_latest_posts 10 \'\' as latest_posts %}\n\t\t<div id="myCarousel" class="carousel slide">\n\t\t\t<div class="carousel-inner">\n\t\t\t\t{% for post in latest_posts|slice:":3" %}\n\t\t\t\t<article class="item {% if forloop.first %}active{% endif %}">\n\t\t\t\t\t<img src="{{ post.image|thumbnail_url:"banner_main" }}">\n\t\t\t\t\t<div class="carousel-caption">\n\t\t\t\t\t\t<h4><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h4>\n\t\t\t\t\t\t<p class="hidden-xs">{{ post.headline|safe }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</article>\n\t\t\t\t{% endfor %}\n\t\t\t</div>\n\t\t\t<ol class="carousel-indicators">\n\t\t\t\t{% for post in latest_posts|slice:":3" %}\n\t\t\t\t<li data-target="#myCarousel" data-slide-to="{{ forloop.counter0 }}" {% if forloop.first %}class="active"{% endif %}></li>\n\t\t\t\t{% endfor %}\n\t\t\t</ol>\n\t\t\t<div class="carousel-controls">\n\t\t\t\t<a class="carousel-control left" href="#myCarousel" data-slide="prev">\n\t\t\t\t\t<span class="fa fa-angle-double-left"></span>\n\t\t\t\t</a>\n\t\t\t\t<a class="carousel-control right" href="#myCarousel" data-slide="next">\n\t\t\t\t\t<span class="fa fa-angle-double-right"></span>\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="col-md-12 widget">\n\t\t\t<div class="row">\n\t\t\t\t{% for post in latest_posts|slice:"3:6" %}\n\t\t\t\t<div class="col-xs-4 latest-small">\n\t\t\t\t\t<a href="{{ post.get_absolute_url }}"><img src="{{ post.image|thumbnail_url:"banner_small" }}"></a>\n\t\t\t\t\t<div class="caption">\n\t\t\t\t\t\t<h5><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h5>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t{% endfor %}\n\t\t\t</div>\n\t\t<hr class="hr">\n\t\t</div>\n\t\t<div class="col-md-12 widget">\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-6 box">\n\t\t\t\t\t<h6 class="h-info">PROFIL</h6>\n\t\t\t\t\t{% show_random_resume %}\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-3 col-xs-6 box">\n\t\t\t\t\t<h6 class="h-info">GALERIJA</h6>\n\t\t\t\t\t{% latest_album %}\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-3 col-xs-6">\n\t\t\t\t\t<h6 class="h-info">VIDEO</h6>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\n\t<div class="col-md-3">\n\t\t<div class="sidebox">\n\t\t\t<h6 class="h-info">POSLEDNJE VESTI</h6>\n\t\t\t<ul class="latest-news">\n\t\t\t\t{% for post in latest_posts|slice:":10" %}\n\t\t\t\t<li>\n\t\t\t\t\t<a href="{{ post.get_absolute_url }}">{{ post.title }}</a>\n\t\t\t\t\t<span class="date">{{ post.date_created }}</span>\n\t\t\t\t</li>\n\t\t\t\t{% endfor %}\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class="sidebox">\n\t\t\t<h6 class="h-info">SOCIAL</h6>\n\n\t\t</div>\n\t</div>\n</div>\n{% endblock %}\n' |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/loader.py
in get_template_from_string
return template
def get_template_from_string(source, origin=None, name=None):
"""
Returns a compiled Template object for the given template code,
handling template inheritance recursively.
"""
return Template(source, origin, name)...
def render_to_string(template_name, dictionary=None, context_instance=None):
"""
Loads the given template_name and renders it with the given dictionary as
context. The template_name may be a string to load a single template using
get_template, or it may be a tuple to use select_template to find one of
Variable | Value |
---|---|
origin | <django.template.loader.LoaderOrigin object at 0x7f07e935da90> |
source | u'{% extends "base.html" %}\n{% load post_tags thumbnail roa_tags fbgallery_tags %}\n\n{% block title %}Po\u010detna{% endblock %}\n\n{% block extrastyle %}\n<style type="text/css">\n/*#####################\nAdditional Styles (required)\n#####################*/\n.carousel-control.left, .carousel-control.right {\n\tbackground-image:none !important;\n}\n.carousel-inner .item img {\n\twidth:100%;\n\theight:100%;\n}\n.carousel-indicators {\n\ttop:5px;\n\tleft:5px;\n\twidth:auto;\n\theight: 30px;\n\tpadding:5px 15px;\n\tmargin-left:0;\n\tbackground:rgba(0,0,0,0.7);\n}\n.carousel-indicators li {\n\tborder-radius:0;\n\twidth:10px;\n\theight:10px;\n\tbackground:#fff;\n}\n.carousel-indicators .active {\n\tbackground:#39b3d7;\n\tborder-color:#39b3d7;\n}\n\n.carousel-control {\n\tbackground:\t#39b3d7;\n\tcolor:#fff;\n\tpadding: 4px 0;\n\twidth:26px;\n\theight: 40px;\n\tleft:auto;\n\ttop:12px;\n\topacity:0.85;\n}\n.carousel-control.right {\n\tright:10px;\n}\n\n.carousel-control.left {\n\tright: 46px;\n}\n.carousel-caption {\n\tbottom:0;\n\tleft:0;\n\tpadding:10px;\n\tbackground:rgba(0,0,0,0.70);\n\ttext-align:left;\n\theight: auto;\n\twidth: 100%;\n \tmax-height:auto;\n\toverflow: hidden;\n}\n.carousel-caption a {\n\tcolor: #fff\n}\n.carousel-caption h4 {\n\tmargin: 0 0 5px 0\n}\n.carousel-caption p {\n\tmargin: 0\n}\n.widget {\n\tmargin: 15px 0;\n\tpadding: 0\n}\n.latest-small {\n\toverflow: hidden;\n\ttext-align: center;\n}\n.latest-small img {\n\twidth: 100%;\n\theight: 135px;\n\tborder: 1px solid #ccc\n}\n.latest-small h5 {\n\ttext-align: left;\n\tfont-weight: normal\n}\n.profile-image {\n\twidth: auto !important;\n\tmax-width: 200px !important;\n\tmax-height: 190px;\n\n}\n.profile-info {\n\tfloat: left;\n\tmargin: 0 10px\n}\n.profile-info h4 {\n\tmargin: 0;\n}\n.h-info {\n\tcolor: #888;\n\tfont-weight: normal;\n}\n.widget .box {\n\theight: 220px;\n\tborder-right: 1px solid #ccc;\n\toverflow: auto;\n}\n.widget .box img {\n\tborder: 1px solid #ccc;\n\twidth: 100%;\n}\n.sidebox {\n\toverflow: auto;\n\tborder-top: 1px solid #7E0000;\n\tmargin-bottom: 20px\n}\n.latest-news {\n\tlist-style-type: none;\n\tpadding: 0\n}\n.latest-news li {\n\tmargin: 0 0 10px 5px\n}\n.latest-news .date {\n\tdisplay: block;\n\tcolor: #ccc;\n\tfont-size: 11px\n}\n@media (min-width: 320px) and (max-width: 767px) {\n\t.latest-small img {\n\t\twidth: 100%;\n\t\theight: 100%\n\t}\n\t.latest-small h5 {\n\t\tfont-size: 13px\n\t}\n\t.footer-logo {\n\t\tmargin:auto;\n\t}\n}\n</style>\n{% endblock %}\n\n{% block content %}\n{{ block.super }}\n<div class="container">\n\t<div class="col-md-9">\n\t\t{% get_latest_posts 10 \'\' as latest_posts %}\n\t\t<div id="myCarousel" class="carousel slide">\n\t\t\t<div class="carousel-inner">\n\t\t\t\t{% for post in latest_posts|slice:":3" %}\n\t\t\t\t<article class="item {% if forloop.first %}active{% endif %}">\n\t\t\t\t\t<img src="{{ post.image|thumbnail_url:"banner_main" }}">\n\t\t\t\t\t<div class="carousel-caption">\n\t\t\t\t\t\t<h4><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h4>\n\t\t\t\t\t\t<p class="hidden-xs">{{ post.headline|safe }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</article>\n\t\t\t\t{% endfor %}\n\t\t\t</div>\n\t\t\t<ol class="carousel-indicators">\n\t\t\t\t{% for post in latest_posts|slice:":3" %}\n\t\t\t\t<li data-target="#myCarousel" data-slide-to="{{ forloop.counter0 }}" {% if forloop.first %}class="active"{% endif %}></li>\n\t\t\t\t{% endfor %}\n\t\t\t</ol>\n\t\t\t<div class="carousel-controls">\n\t\t\t\t<a class="carousel-control left" href="#myCarousel" data-slide="prev">\n\t\t\t\t\t<span class="fa fa-angle-double-left"></span>\n\t\t\t\t</a>\n\t\t\t\t<a class="carousel-control right" href="#myCarousel" data-slide="next">\n\t\t\t\t\t<span class="fa fa-angle-double-right"></span>\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="col-md-12 widget">\n\t\t\t<div class="row">\n\t\t\t\t{% for post in latest_posts|slice:"3:6" %}\n\t\t\t\t<div class="col-xs-4 latest-small">\n\t\t\t\t\t<a href="{{ post.get_absolute_url }}"><img src="{{ post.image|thumbnail_url:"banner_small" }}"></a>\n\t\t\t\t\t<div class="caption">\n\t\t\t\t\t\t<h5><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h5>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t{% endfor %}\n\t\t\t</div>\n\t\t<hr class="hr">\n\t\t</div>\n\t\t<div class="col-md-12 widget">\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-6 box">\n\t\t\t\t\t<h6 class="h-info">PROFIL</h6>\n\t\t\t\t\t{% show_random_resume %}\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-3 col-xs-6 box">\n\t\t\t\t\t<h6 class="h-info">GALERIJA</h6>\n\t\t\t\t\t{% latest_album %}\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-3 col-xs-6">\n\t\t\t\t\t<h6 class="h-info">VIDEO</h6>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\n\t<div class="col-md-3">\n\t\t<div class="sidebox">\n\t\t\t<h6 class="h-info">POSLEDNJE VESTI</h6>\n\t\t\t<ul class="latest-news">\n\t\t\t\t{% for post in latest_posts|slice:":10" %}\n\t\t\t\t<li>\n\t\t\t\t\t<a href="{{ post.get_absolute_url }}">{{ post.title }}</a>\n\t\t\t\t\t<span class="date">{{ post.date_created }}</span>\n\t\t\t\t</li>\n\t\t\t\t{% endfor %}\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class="sidebox">\n\t\t\t<h6 class="h-info">SOCIAL</h6>\n\n\t\t</div>\n\t</div>\n</div>\n{% endblock %}\n' |
name | 'home_page.html' |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/base.py
in __init__
try:
template_string = force_text(template_string)
except UnicodeDecodeError:
raise TemplateEncodingError("Templates can only be constructed "
"from unicode or UTF-8 strings.")
if settings.TEMPLATE_DEBUG and origin is None:
origin = StringOrigin(template_string)
self.nodelist = compile_string(template_string, origin)...
self.name = name
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
Variable | Value |
---|---|
origin | <django.template.loader.LoaderOrigin object at 0x7f07e935da90> |
template_string | u'{% extends "base.html" %}\n{% load post_tags thumbnail roa_tags fbgallery_tags %}\n\n{% block title %}Po\u010detna{% endblock %}\n\n{% block extrastyle %}\n<style type="text/css">\n/*#####################\nAdditional Styles (required)\n#####################*/\n.carousel-control.left, .carousel-control.right {\n\tbackground-image:none !important;\n}\n.carousel-inner .item img {\n\twidth:100%;\n\theight:100%;\n}\n.carousel-indicators {\n\ttop:5px;\n\tleft:5px;\n\twidth:auto;\n\theight: 30px;\n\tpadding:5px 15px;\n\tmargin-left:0;\n\tbackground:rgba(0,0,0,0.7);\n}\n.carousel-indicators li {\n\tborder-radius:0;\n\twidth:10px;\n\theight:10px;\n\tbackground:#fff;\n}\n.carousel-indicators .active {\n\tbackground:#39b3d7;\n\tborder-color:#39b3d7;\n}\n\n.carousel-control {\n\tbackground:\t#39b3d7;\n\tcolor:#fff;\n\tpadding: 4px 0;\n\twidth:26px;\n\theight: 40px;\n\tleft:auto;\n\ttop:12px;\n\topacity:0.85;\n}\n.carousel-control.right {\n\tright:10px;\n}\n\n.carousel-control.left {\n\tright: 46px;\n}\n.carousel-caption {\n\tbottom:0;\n\tleft:0;\n\tpadding:10px;\n\tbackground:rgba(0,0,0,0.70);\n\ttext-align:left;\n\theight: auto;\n\twidth: 100%;\n \tmax-height:auto;\n\toverflow: hidden;\n}\n.carousel-caption a {\n\tcolor: #fff\n}\n.carousel-caption h4 {\n\tmargin: 0 0 5px 0\n}\n.carousel-caption p {\n\tmargin: 0\n}\n.widget {\n\tmargin: 15px 0;\n\tpadding: 0\n}\n.latest-small {\n\toverflow: hidden;\n\ttext-align: center;\n}\n.latest-small img {\n\twidth: 100%;\n\theight: 135px;\n\tborder: 1px solid #ccc\n}\n.latest-small h5 {\n\ttext-align: left;\n\tfont-weight: normal\n}\n.profile-image {\n\twidth: auto !important;\n\tmax-width: 200px !important;\n\tmax-height: 190px;\n\n}\n.profile-info {\n\tfloat: left;\n\tmargin: 0 10px\n}\n.profile-info h4 {\n\tmargin: 0;\n}\n.h-info {\n\tcolor: #888;\n\tfont-weight: normal;\n}\n.widget .box {\n\theight: 220px;\n\tborder-right: 1px solid #ccc;\n\toverflow: auto;\n}\n.widget .box img {\n\tborder: 1px solid #ccc;\n\twidth: 100%;\n}\n.sidebox {\n\toverflow: auto;\n\tborder-top: 1px solid #7E0000;\n\tmargin-bottom: 20px\n}\n.latest-news {\n\tlist-style-type: none;\n\tpadding: 0\n}\n.latest-news li {\n\tmargin: 0 0 10px 5px\n}\n.latest-news .date {\n\tdisplay: block;\n\tcolor: #ccc;\n\tfont-size: 11px\n}\n@media (min-width: 320px) and (max-width: 767px) {\n\t.latest-small img {\n\t\twidth: 100%;\n\t\theight: 100%\n\t}\n\t.latest-small h5 {\n\t\tfont-size: 13px\n\t}\n\t.footer-logo {\n\t\tmargin:auto;\n\t}\n}\n</style>\n{% endblock %}\n\n{% block content %}\n{{ block.super }}\n<div class="container">\n\t<div class="col-md-9">\n\t\t{% get_latest_posts 10 \'\' as latest_posts %}\n\t\t<div id="myCarousel" class="carousel slide">\n\t\t\t<div class="carousel-inner">\n\t\t\t\t{% for post in latest_posts|slice:":3" %}\n\t\t\t\t<article class="item {% if forloop.first %}active{% endif %}">\n\t\t\t\t\t<img src="{{ post.image|thumbnail_url:"banner_main" }}">\n\t\t\t\t\t<div class="carousel-caption">\n\t\t\t\t\t\t<h4><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h4>\n\t\t\t\t\t\t<p class="hidden-xs">{{ post.headline|safe }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</article>\n\t\t\t\t{% endfor %}\n\t\t\t</div>\n\t\t\t<ol class="carousel-indicators">\n\t\t\t\t{% for post in latest_posts|slice:":3" %}\n\t\t\t\t<li data-target="#myCarousel" data-slide-to="{{ forloop.counter0 }}" {% if forloop.first %}class="active"{% endif %}></li>\n\t\t\t\t{% endfor %}\n\t\t\t</ol>\n\t\t\t<div class="carousel-controls">\n\t\t\t\t<a class="carousel-control left" href="#myCarousel" data-slide="prev">\n\t\t\t\t\t<span class="fa fa-angle-double-left"></span>\n\t\t\t\t</a>\n\t\t\t\t<a class="carousel-control right" href="#myCarousel" data-slide="next">\n\t\t\t\t\t<span class="fa fa-angle-double-right"></span>\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="col-md-12 widget">\n\t\t\t<div class="row">\n\t\t\t\t{% for post in latest_posts|slice:"3:6" %}\n\t\t\t\t<div class="col-xs-4 latest-small">\n\t\t\t\t\t<a href="{{ post.get_absolute_url }}"><img src="{{ post.image|thumbnail_url:"banner_small" }}"></a>\n\t\t\t\t\t<div class="caption">\n\t\t\t\t\t\t<h5><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h5>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t{% endfor %}\n\t\t\t</div>\n\t\t<hr class="hr">\n\t\t</div>\n\t\t<div class="col-md-12 widget">\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-6 box">\n\t\t\t\t\t<h6 class="h-info">PROFIL</h6>\n\t\t\t\t\t{% show_random_resume %}\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-3 col-xs-6 box">\n\t\t\t\t\t<h6 class="h-info">GALERIJA</h6>\n\t\t\t\t\t{% latest_album %}\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-3 col-xs-6">\n\t\t\t\t\t<h6 class="h-info">VIDEO</h6>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\n\t<div class="col-md-3">\n\t\t<div class="sidebox">\n\t\t\t<h6 class="h-info">POSLEDNJE VESTI</h6>\n\t\t\t<ul class="latest-news">\n\t\t\t\t{% for post in latest_posts|slice:":10" %}\n\t\t\t\t<li>\n\t\t\t\t\t<a href="{{ post.get_absolute_url }}">{{ post.title }}</a>\n\t\t\t\t\t<span class="date">{{ post.date_created }}</span>\n\t\t\t\t</li>\n\t\t\t\t{% endfor %}\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class="sidebox">\n\t\t\t<h6 class="h-info">SOCIAL</h6>\n\n\t\t</div>\n\t</div>\n</div>\n{% endblock %}\n' |
self | <django.template.base.Template object at 0x7f07e935d090> |
name | 'home_page.html' |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/base.py
in compile_string
if settings.TEMPLATE_DEBUG:
from django.template.debug import DebugLexer, DebugParser
lexer_class, parser_class = DebugLexer, DebugParser
else:
lexer_class, parser_class = Lexer, Parser
lexer = lexer_class(template_string, origin)
parser = parser_class(lexer.tokenize())
return parser.parse()...
class Token(object):
def __init__(self, token_type, contents):
# token_type must be TOKEN_TEXT, TOKEN_VAR, TOKEN_BLOCK or
# TOKEN_COMMENT.
self.token_type, self.contents = token_type, contents
Variable | Value |
---|---|
lexer_class | <class 'django.template.debug.DebugLexer'> |
origin | <django.template.loader.LoaderOrigin object at 0x7f07e935da90> |
DebugLexer | <class 'django.template.debug.DebugLexer'> |
lexer | <django.template.debug.DebugLexer object at 0x7f07e935d710> |
parser | <django.template.debug.DebugParser object at 0x7f07e9376f50> |
template_string | u'{% extends "base.html" %}\n{% load post_tags thumbnail roa_tags fbgallery_tags %}\n\n{% block title %}Po\u010detna{% endblock %}\n\n{% block extrastyle %}\n<style type="text/css">\n/*#####################\nAdditional Styles (required)\n#####################*/\n.carousel-control.left, .carousel-control.right {\n\tbackground-image:none !important;\n}\n.carousel-inner .item img {\n\twidth:100%;\n\theight:100%;\n}\n.carousel-indicators {\n\ttop:5px;\n\tleft:5px;\n\twidth:auto;\n\theight: 30px;\n\tpadding:5px 15px;\n\tmargin-left:0;\n\tbackground:rgba(0,0,0,0.7);\n}\n.carousel-indicators li {\n\tborder-radius:0;\n\twidth:10px;\n\theight:10px;\n\tbackground:#fff;\n}\n.carousel-indicators .active {\n\tbackground:#39b3d7;\n\tborder-color:#39b3d7;\n}\n\n.carousel-control {\n\tbackground:\t#39b3d7;\n\tcolor:#fff;\n\tpadding: 4px 0;\n\twidth:26px;\n\theight: 40px;\n\tleft:auto;\n\ttop:12px;\n\topacity:0.85;\n}\n.carousel-control.right {\n\tright:10px;\n}\n\n.carousel-control.left {\n\tright: 46px;\n}\n.carousel-caption {\n\tbottom:0;\n\tleft:0;\n\tpadding:10px;\n\tbackground:rgba(0,0,0,0.70);\n\ttext-align:left;\n\theight: auto;\n\twidth: 100%;\n \tmax-height:auto;\n\toverflow: hidden;\n}\n.carousel-caption a {\n\tcolor: #fff\n}\n.carousel-caption h4 {\n\tmargin: 0 0 5px 0\n}\n.carousel-caption p {\n\tmargin: 0\n}\n.widget {\n\tmargin: 15px 0;\n\tpadding: 0\n}\n.latest-small {\n\toverflow: hidden;\n\ttext-align: center;\n}\n.latest-small img {\n\twidth: 100%;\n\theight: 135px;\n\tborder: 1px solid #ccc\n}\n.latest-small h5 {\n\ttext-align: left;\n\tfont-weight: normal\n}\n.profile-image {\n\twidth: auto !important;\n\tmax-width: 200px !important;\n\tmax-height: 190px;\n\n}\n.profile-info {\n\tfloat: left;\n\tmargin: 0 10px\n}\n.profile-info h4 {\n\tmargin: 0;\n}\n.h-info {\n\tcolor: #888;\n\tfont-weight: normal;\n}\n.widget .box {\n\theight: 220px;\n\tborder-right: 1px solid #ccc;\n\toverflow: auto;\n}\n.widget .box img {\n\tborder: 1px solid #ccc;\n\twidth: 100%;\n}\n.sidebox {\n\toverflow: auto;\n\tborder-top: 1px solid #7E0000;\n\tmargin-bottom: 20px\n}\n.latest-news {\n\tlist-style-type: none;\n\tpadding: 0\n}\n.latest-news li {\n\tmargin: 0 0 10px 5px\n}\n.latest-news .date {\n\tdisplay: block;\n\tcolor: #ccc;\n\tfont-size: 11px\n}\n@media (min-width: 320px) and (max-width: 767px) {\n\t.latest-small img {\n\t\twidth: 100%;\n\t\theight: 100%\n\t}\n\t.latest-small h5 {\n\t\tfont-size: 13px\n\t}\n\t.footer-logo {\n\t\tmargin:auto;\n\t}\n}\n</style>\n{% endblock %}\n\n{% block content %}\n{{ block.super }}\n<div class="container">\n\t<div class="col-md-9">\n\t\t{% get_latest_posts 10 \'\' as latest_posts %}\n\t\t<div id="myCarousel" class="carousel slide">\n\t\t\t<div class="carousel-inner">\n\t\t\t\t{% for post in latest_posts|slice:":3" %}\n\t\t\t\t<article class="item {% if forloop.first %}active{% endif %}">\n\t\t\t\t\t<img src="{{ post.image|thumbnail_url:"banner_main" }}">\n\t\t\t\t\t<div class="carousel-caption">\n\t\t\t\t\t\t<h4><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h4>\n\t\t\t\t\t\t<p class="hidden-xs">{{ post.headline|safe }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</article>\n\t\t\t\t{% endfor %}\n\t\t\t</div>\n\t\t\t<ol class="carousel-indicators">\n\t\t\t\t{% for post in latest_posts|slice:":3" %}\n\t\t\t\t<li data-target="#myCarousel" data-slide-to="{{ forloop.counter0 }}" {% if forloop.first %}class="active"{% endif %}></li>\n\t\t\t\t{% endfor %}\n\t\t\t</ol>\n\t\t\t<div class="carousel-controls">\n\t\t\t\t<a class="carousel-control left" href="#myCarousel" data-slide="prev">\n\t\t\t\t\t<span class="fa fa-angle-double-left"></span>\n\t\t\t\t</a>\n\t\t\t\t<a class="carousel-control right" href="#myCarousel" data-slide="next">\n\t\t\t\t\t<span class="fa fa-angle-double-right"></span>\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="col-md-12 widget">\n\t\t\t<div class="row">\n\t\t\t\t{% for post in latest_posts|slice:"3:6" %}\n\t\t\t\t<div class="col-xs-4 latest-small">\n\t\t\t\t\t<a href="{{ post.get_absolute_url }}"><img src="{{ post.image|thumbnail_url:"banner_small" }}"></a>\n\t\t\t\t\t<div class="caption">\n\t\t\t\t\t\t<h5><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h5>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t{% endfor %}\n\t\t\t</div>\n\t\t<hr class="hr">\n\t\t</div>\n\t\t<div class="col-md-12 widget">\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-6 box">\n\t\t\t\t\t<h6 class="h-info">PROFIL</h6>\n\t\t\t\t\t{% show_random_resume %}\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-3 col-xs-6 box">\n\t\t\t\t\t<h6 class="h-info">GALERIJA</h6>\n\t\t\t\t\t{% latest_album %}\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-3 col-xs-6">\n\t\t\t\t\t<h6 class="h-info">VIDEO</h6>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\n\t<div class="col-md-3">\n\t\t<div class="sidebox">\n\t\t\t<h6 class="h-info">POSLEDNJE VESTI</h6>\n\t\t\t<ul class="latest-news">\n\t\t\t\t{% for post in latest_posts|slice:":10" %}\n\t\t\t\t<li>\n\t\t\t\t\t<a href="{{ post.get_absolute_url }}">{{ post.title }}</a>\n\t\t\t\t\t<span class="date">{{ post.date_created }}</span>\n\t\t\t\t</li>\n\t\t\t\t{% endfor %}\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class="sidebox">\n\t\t\t<h6 class="h-info">SOCIAL</h6>\n\n\t\t</div>\n\t</div>\n</div>\n{% endblock %}\n' |
DebugParser | <class 'django.template.debug.DebugParser'> |
parser_class | <class 'django.template.debug.DebugParser'> |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/base.py
in parse
# resulting node
self.enter_command(command, token)
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
try:
compiled_result = compile_func(self, token)...
except TemplateSyntaxError as e:
if not self.compile_function_error(token, e):
raise
self.extend_nodelist(nodelist, compiled_result, token)
self.exit_command()
if parse_until:
Variable | Value |
---|---|
nodelist | [] |
self | <django.template.debug.DebugParser object at 0x7f07e9376f50> |
token | <django.template.base.Token object at 0x7f07e935d7d0> |
parse_until | [] |
command | u'extends' |
compile_func | <function do_extends at 0x7f07ed01d5f0> |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/loader_tags.py
in do_extends
name of the parent template to extend (if it evaluates to a string) or as
the parent template itself (if it evaluates to a Template object).
"""
bits = token.split_contents()
if len(bits) != 2:
raise TemplateSyntaxError("'%s' takes one argument" % bits[0])
parent_name = parser.compile_filter(bits[1])
nodelist = parser.parse()...
if nodelist.get_nodes_by_type(ExtendsNode):
raise TemplateSyntaxError("'%s' cannot appear more than once in the same template" % bits[0])
return ExtendsNode(nodelist, parent_name)
@register.tag('include')
def do_include(parser, token):
Variable | Value |
---|---|
parent_name | <django.template.base.FilterExpression object at 0x7f07e9376150> |
token | <django.template.base.Token object at 0x7f07e935d7d0> |
parser | <django.template.debug.DebugParser object at 0x7f07e9376f50> |
bits | [u'extends', u'"base.html"'] |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/base.py
in parse
# resulting node
self.enter_command(command, token)
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
try:
compiled_result = compile_func(self, token)...
except TemplateSyntaxError as e:
if not self.compile_function_error(token, e):
raise
self.extend_nodelist(nodelist, compiled_result, token)
self.exit_command()
if parse_until:
Variable | Value |
---|---|
nodelist | [<Text Node: ' '>] |
self | <django.template.debug.DebugParser object at 0x7f07e9376f50> |
token | <django.template.base.Token object at 0x7f07e935d6d0> |
parse_until | [] |
command | u'load' |
compile_func | <function load at 0x7f07ed309c08> |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/defaulttags.py
in load
raise TemplateSyntaxError("'%s' is not a valid tag or filter in tag library '%s'" %
(name, taglib))
parser.add_library(temp_lib)
else:
for taglib in bits[1:]:
# add the library to the parser
try:
lib = get_library(taglib)...
parser.add_library(lib)
except InvalidTemplateLibrary as e:
raise TemplateSyntaxError("'%s' is not a valid tag library: %s" %
(taglib, e))
return LoadNode()
Variable | Value |
---|---|
token | <django.template.base.Token object at 0x7f07e935d6d0> |
taglib | u'roa_tags' |
bits | [u'load', u'post_tags', u'thumbnail', u'roa_tags', u'fbgallery_tags'] |
parser | <django.template.debug.DebugParser object at 0x7f07e9376f50> |
lib | <django.template.base.Library object at 0x7f07e948fe10> |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/base.py
in get_library
lib = libraries.get(library_name, None)
if not lib:
templatetags_modules = get_templatetags_modules()
tried_modules = []
for module in templatetags_modules:
taglib_module = '%s.%s' % (module, library_name)
tried_modules.append(taglib_module)
lib = import_library(taglib_module)...
if lib:
libraries[library_name] = lib
break
if not lib:
raise InvalidTemplateLibrary("Template library %s not found, "
"tried %s" %
Variable | Value |
---|---|
library_name | u'roa_tags' |
tried_modules | [u'django.templatetags.roa_tags', u'suit.templatetags.roa_tags', u'polymorphic.templatetags.roa_tags', u'django.contrib.admin.templatetags.roa_tags', u'django.contrib.staticfiles.templatetags.roa_tags', u'django_select2.templatetags.roa_tags', u'sekizai.templatetags.roa_tags', u'widget_tweaks.templatetags.roa_tags', u'rest_framework.templatetags.roa_tags', u'hitcount.templatetags.roa_tags', u'import_export.templatetags.roa_tags', u'sitetree.templatetags.roa_tags', u'mptt.templatetags.roa_tags', u'filer.templatetags.roa_tags', u'easy_thumbnails.templatetags.roa_tags', u'ckeditor_filer.templatetags.roa_tags', u'content.templatetags.roa_tags', u'category_content.templatetags.roa_tags', u'content_post.templatetags.roa_tags', u'content_page.templatetags.roa_tags', u'content_ad.templatetags.roa_tags', u'categories.templatetags.roa_tags', u'categories.editor.templatetags.roa_tags', u'fbgallery.templatetags.roa_tags', u'roalib.templatetags.roa_tags'] |
taglib_module | u'roalib.templatetags.roa_tags' |
lib | None |
templatetags_modules | [u'django.templatetags', u'suit.templatetags', u'polymorphic.templatetags', u'django.contrib.admin.templatetags', u'django.contrib.staticfiles.templatetags', u'django_select2.templatetags', u'sekizai.templatetags', u'widget_tweaks.templatetags', u'rest_framework.templatetags', u'hitcount.templatetags', u'import_export.templatetags', u'sitetree.templatetags', u'mptt.templatetags', u'filer.templatetags', u'easy_thumbnails.templatetags', u'ckeditor_filer.templatetags', u'content.templatetags', u'category_content.templatetags', u'content_post.templatetags', u'content_page.templatetags', u'content_ad.templatetags', u'categories.templatetags', u'categories.editor.templatetags', u'fbgallery.templatetags', u'roalib.templatetags'] |
module | u'roalib.templatetags' |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/template/base.py
in import_library
"""
Load a template tag library module.
Verifies that the library contains a 'register' attribute, and
returns that attribute as the representation of the library
"""
try:
mod = import_module(taglib_module)...
except ImportError as e:
# If the ImportError is because the taglib submodule does not exist,
# that's not an error that should be raised. If the submodule exists
# and raised an ImportError on the attempt to load it, that we want
# to raise.
if is_library_missing(taglib_module):
Variable | Value |
---|---|
taglib_module | u'roalib.templatetags.roa_tags' |
/home/uninp/news/v/local/lib/python2.7/site-packages/django/utils/importlib.py
in import_module
raise TypeError("relative imports require the 'package' argument")
level = 0
for character in name:
if character != '.':
break
level += 1
name = _resolve_name(name[level:], package, level)
__import__(name)...
return sys.modules[name]
Variable | Value |
---|---|
name | u'roalib.templatetags.roa_tags' |
package | None |
/home/uninp/news/v/src/roalib-master/roalib/templatetags/roa_tags.py
in <module>
from django import template
from roalib.models import *...
register = template.Library()
@register.inclusion_tag('roalib/templatetags/latest_news.html')
def latest_news(limit=5):
Variable | Value |
---|---|
__builtins__ | {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2014 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': See http://www.python.org/2.7/license.html, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} |
__file__ | None |
__package__ | None |
template | None |
__name__ | None |
__doc__ | None |
/home/uninp/news/v/src/roalib-master/roalib/models.py
in <module>
@receiver(post_init, sender=RemoteUser)
def rest_user(sender, **kwargs):
instance = kwargs['instance']
print instance
class Post(ROAModel):...
id = models.IntegerField(primary_key=True) # don't forget it !
title = models.CharField(max_length=200, blank=True, null=True)
body = models.TextField(blank=True, null=True)
link_url = models.URLField(blank=True, null=True)
categories = models.ManyToManyField()
image_200x150 = models.CharField(max_length=500, blank=True, null=True)
Variable | Value |
---|---|
ROAModel | None |
settings | None |
__builtins__ | {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2014 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': See http://www.python.org/2.7/license.html, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} |
RemoteUser | None |
__file__ | None |
UserManager | None |
__package__ | None |
models | None |
__doc__ | None |
__name__ | None |
receiver | None |
rest_user | None |
post_init | None |
/home/uninp/news/v/src/roalib-master/roalib/models.py
in Post
class Post(ROAModel):
id = models.IntegerField(primary_key=True) # don't forget it !
title = models.CharField(max_length=200, blank=True, null=True)
body = models.TextField(blank=True, null=True)
link_url = models.URLField(blank=True, null=True)
categories = models.ManyToManyField()...
image_200x150 = models.CharField(max_length=500, blank=True, null=True)
headline = models.TextField(null=True, blank=True)
date_created = models.DateTimeField()
api_base_name = 'post'
@classmethod
Variable | Value |
---|---|
body | <django.db.models.fields.TextField> |
link_url | <django.db.models.fields.URLField> |
title | <django.db.models.fields.CharField> |
__module__ | 'roalib.models' |
id | <django.db.models.fields.IntegerField> |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
SERVER_SOFTWARE | 'gunicorn/19.4.5' |
SCRIPT_NAME | u'' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/' |
SERVER_PROTOCOL | 'HTTP/1.0' |
QUERY_STRING | '' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_CONNECTION | 'close' |
SERVER_NAME | 'news.uninp.edu.rs' |
REMOTE_ADDR | '' |
wsgi.url_scheme | 'http' |
SERVER_PORT | '80' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f07e94e7850> |
HTTP_HOST | 'news.uninp.edu.rs' |
wsgi.multithread | False |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 0) |
RAW_URI | '/' |
wsgi.run_once | False |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f07e94a8f50> |
wsgi.multiprocess | True |
gunicorn.socket | <socket._socketobject object at 0x7f07ead55de0> |
HTTP_X_FORWARDED_FOR | '54.224.52.210' |
wsgi.file_wrapper | '' |
CSRF_COOKIE | u'HGr3kvjglyHkgGExCc5Dk8mwHl8oxDhj' |
news.settings_deployment
Setting | Value |
---|---|
MONTH_DAY_FORMAT | 'F j' |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'sr-latn' |
ROOT_URLCONF | 'news.urls' |
LOGIN_URL | '/accounts/login/' |
FACULTY_SERVER_URL | 'http://faculty.uninp.edu.rs' |
BASE_DIR | '/home/uninp/news/news' |
DEFAULT_CHARSET | 'utf-8' |
CAS_SERVER_URL | 'http://cas.uninp.edu.rs' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
STATIC_ROOT | '/home/uninp/news/static/' |
ALLOWED_HOSTS | [] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SEND_BROKEN_LINK_EMAILS | False |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
CAS_PROXY_CALLBACK | None |
THUMBNAIL_ALIASES | {'': {'banner_main': {'autocrop': True, 'crop': True, 'replace_alpha': '#fff', 'size': (600, 240), 'upscale': True}, 'banner_small': {'autocrop': True, 'crop': True, 'replace_alpha': '#fff', 'size': (281, 150), 'upscale': True}}} |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': '', 'NAME': 'news', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'Europe/Belgrade', 'USER': 'uninp'}} |
TEMPLATE_DEBUG | True |
STATIC_URL | '/static/' |
SUIT_CONFIG | {'ADMIN_NAME': 'news.uninp', 'MENU': ('hitcount', 'sites', 'taggit', 'auth', {'icon': 'icon-file', 'label': <django.utils.functional.__proxy__ object at 0x7f07ed291710>, 'models': ({'label': <django.utils.functional.__proxy__ object at 0x7f07ed2916d0>, 'url': 'categories.category'}, {'label': <django.utils.functional.__proxy__ object at 0x7f07ed291790>, 'url': 'content_page.page'}, {'label': <django.utils.functional.__proxy__ object at 0x7f07ed2917d0>, 'url': 'content_post.post'}, {'label': <django.utils.functional.__proxy__ object at 0x7f07ed291810>, 'url': 'content_ad.ad'}, {'label': <django.utils.functional.__proxy__ object at 0x7f07ed291850>, 'url': 'sitetree.tree'})}, {'app': 'filer', 'icon': 'icon-picture', 'label': <django.utils.functional.__proxy__ object at 0x7f07ed291890>, 'models': ({'label': <django.utils.functional.__proxy__ object at 0x7f07ed2918d0>, 'model': 'filer.folder'}, {'label': <django.utils.functional.__proxy__ object at 0x7f07ed291910>, 'model': 'filer.folderpermission'}, {'label': <django.utils.functional.__proxy__ object at 0x7f07ed291950>, 'model': 'filer.thumbnailoption'})}, {'app': 'account', 'icon': 'icon-lock', 'label': <django.utils.functional.__proxy__ object at 0x7f07ed291990>, 'models': ({'label': <django.utils.functional.__proxy__ object at 0x7f07ed2919d0>, 'model': 'account.myuser'}, {'label': <django.utils.functional.__proxy__ object at 0x7f07ed291a10>, 'model': 'account.myusermoderation'}, {'label': <django.utils.functional.__proxy__ object at 0x7f07ed291a50>, 'model': 'auth.group'})})} |
FILE_UPLOAD_PERMISSIONS | None |
TIME_FORMAT | 'P' |
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'}} |
SERVER_EMAIL | 'root@localhost' |
SESSION_COOKIE_PATH | '/' |
CAS_REDIRECT_URL | '/' |
ACCOUNTS_SERVER_URL | 'http://accounts.uninp.edu.rs' |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
FILE_UPLOAD_TEMP_DIR | None |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'django.utils.log.dictConfig' |
TCP | ('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.core.context_processors.tz', 'django.contrib.messages.context_processors.messages') |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
WSGI_APPLICATION | 'news.wsgi.application' |
ROA_MODELS | True |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
FORCE_SCRIPT_NAME | '' |
USE_X_FORWARDED_HOST | False |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
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 | ('suit', 'polymorphic', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_cas', 'django_select2', 'bordo', 'south', 'sekizai', 'widget_tweaks', 'rest_framework', 'hitcount', 'import_export', 'sitetree', 'mptt', 'filer', 'easy_thumbnails', 'taggit', 'advnewsticker', 'ckeditor_filer', 'content', 'category_content', 'content_post', 'content_page', 'content_ad', 'categories', 'categories.editor', 'fbgallery', 'roalib') |
LANGUAGES_BIDI | ('he', 'ar', 'fa', 'ur') |
COMMENTS_ALLOW_PROFANITIES | False |
STATICFILES_DIRS | ('/home/uninp/news/news/news/public',) |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
CAS_SINGLE_SIGN_OUT | True |
MANAGERS | () |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
FB_PAGE_ID | '188155477869664' |
AUTH_USER_MODEL | 'auth.User' |
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') |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend', 'django_cas.backends.CASBackend') |
EMAIL_HOST_PASSWORD | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
NUMBER_GROUPING | 0 |
ROA_DJANGO_ERRORS | True |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
DECIMAL_SEPARATOR | '.' |
DATETIME_FORMAT | 'N j, Y, P' |
IGNORABLE_404_URLS | () |
LOCALE_PATHS | () |
TEMPLATE_STRING_IF_INVALID | '' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'N j, Y' |
FB_APP_ID | '255080524522463' |
CAS_GATEWAY | False |
MEDIA_ROOT | '/home/uninp/news/media/' |
CAS_LOGOUT_COMPLETELY | True |
ROA_FORMAT | 'json' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | () |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
MEDIA_URL | '/media/' |
CAS_ALLOWED_PROXIES | [] |
TEMPLATE_DIRS | ('/home/uninp/news/news/news/templates',) |
CAS_IGNORE_REFERER | False |
CAS_AUTO_CREATE_USERS | False |
MIDDLEWARE_CLASSES | ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django_cas.middleware.CASMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware') |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
CAS_RENEW | False |
LOGGING | {'disable_existing_loggers': False, 'handlers': {'file': {'class': 'logging.FileHandler', 'filename': 'debug.log', 'level': 'DEBUG'}}, 'loggers': {'django.request': {'handlers': ['file'], 'level': 'DEBUG', 'propagate': True}, 'django_cas.views': {'handlers': ['file'], 'level': 'DEBUG', 'propagate': True}}, 'version': 1} |
FB_APP_SECRET | u'********************' |
SHORT_DATE_FORMAT | 'm/d/Y' |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
CAS_RETRY_LOGIN | False |
TIME_ZONE | 'Europe/Belgrade' |
SOUTH_MIGRATION_MODULES | {'easy_thumbnails': 'easy_thumbnails.south_migrations', 'taggit': 'taggit.south_migrations'} |
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.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.request', 'sekizai.context_processors.sekizai', 'bordo.context_processors.settings') |
CAS_EXTRA_LOGIN_PARAMS | None |
MIGRATION_MODULES | {'filer': 'filer.migrations_django'} |
SITE_NAME | 'Uninp News' |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'news.settings_deployment' |
USE_ETAGS | False |
LANGUAGES | (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan 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'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('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'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')) |
DEFAULT_INDEX_TABLESPACE | '' |
INTERNAL_IPS | () |
SESSION_COOKIE_NAME | 'sessionid' |
EMAIL_PORT | 25 |
USE_TZ | False |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
CAS_GATEWAY_PARAM | 'casgw' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_HTTPONLY | False |
DATETIME_INPUT_FORMATS | ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y') |
ROA_ARGS_NAMES_MAPPING | {'ORDER_BY': 'ordering'} |
EMAIL_HOST_USER | '' |
PROFANITIES_LIST | u'********************' |
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.