TypeError at /

__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

Traceback Switch to copy-and-paste view



Request information

GET

No GET data

POST

No POST data

FILES

No FILES data

No cookie data

META

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'

Settings

Using settings module 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.