TypeError at /admin/

93 views
Skip to first unread message

Moltra

unread,
Jan 4, 2014, 1:30:31 AM1/4/14
to mezzani...@googlegroups.com
I am trying to customize the blog app by copying it to a new folder and renaming everything so that It is a seperate app.  I have gotten it setup and have ran schemamigration and migrate on it.  I am not getting a "TypeError at /admin/"

Here is what happens when I try and access the admin menu at "http://127.0.0.1:8000/admin/"  

All help would be appreciated.



TypeError at /admin/

unorderable types: int() < str()
Request Method:GET
Request URL:http://127.0.0.1:8000/admin/
Django Version:1.6.1
Exception Type:TypeError
Exception Value:
unorderable types: int() < str()
Exception Location:C:\django\web\lib\site-packages\mezzanine\core\templatetags\mezzanine_tags.py in admin_app_list, line 563
Python Executable:C:\django\web\Scripts\python.exe
Python Version:3.3.3
Python Path:
['C:\\django\\web',
 'C:\\django\\web\\website',
 'C:\\Windows\\system32\\python33.zip',
 'C:\\django\\web\\DLLs',
 'C:\\django\\web\\lib',
 'C:\\django\\web\\Scripts',
 'C:\\Python33\\Lib',
 'C:\\Python33\\DLLs',
 'C:\\django\\web',
 'C:\\django\\web\\lib\\site-packages']
Server time:Sat, 4 Jan 2014 01:29:45 -0500

Error during template rendering

In template <unknown source>, error at line 1

unorderable types: int() < str()

1{% load mezzanine_tags %}{% app_list %}

Traceback Switch to copy-and-paste view

  • C:\django\web\lib\site-packages\django\core\handlers\base.py in get_response
    1.                 response = response.render()
      ...
  • C:\django\web\lib\site-packages\django\template\response.py in render
    1.             self.content = self.rendered_content
      ...
  • C:\django\web\lib\site-packages\django\template\response.py in rendered_content
    1.         content = template.render(context)
      ...
  • C:\django\web\lib\site-packages\django\template\base.py in render
    1.             return self._render(context)
      ...
  • C:\django\web\lib\site-packages\django\test\utils.py in instrumented_test_render
    1.     return self.nodelist.render(context)
      ...
  • C:\django\web\lib\site-packages\django\template\base.py in render
    1.                 bit = self.render_node(node, context)
      ...
  • C:\django\web\lib\site-packages\django\template\debug.py in render_node
    1.             return node.render(context)
      ...
  • C:\django\web\lib\site-packages\django\template\loader_tags.py in render
    1.         return compiled_parent._render(context)
      ...
  • C:\django\web\lib\site-packages\django\test\utils.py in instrumented_test_render
    1.     return self.nodelist.render(context)
      ...
  • C:\django\web\lib\site-packages\django\template\base.py in render
    1.                 bit = self.render_node(node, context)
      ...
  • C:\django\web\lib\site-packages\django\template\debug.py in render_node
    1.             return node.render(context)
      ...
  • C:\django\web\lib\site-packages\django\template\loader_tags.py in render
    1.         return compiled_parent._render(context)
      ...
  • C:\django\web\lib\site-packages\django\test\utils.py in instrumented_test_render
    1.     return self.nodelist.render(context)
      ...
  • C:\django\web\lib\site-packages\django\template\base.py in render
    1.                 bit = self.render_node(node, context)
      ...
  • C:\django\web\lib\site-packages\django\template\debug.py in render_node
    1.             return node.render(context)
      ...
  • C:\django\web\lib\site-packages\django\template\loader_tags.py in render
    1.             result = block.nodelist.render(context)
      ...
  • C:\django\web\lib\site-packages\django\template\base.py in render
    1.                 bit = self.render_node(node, context)
      ...
  • C:\django\web\lib\site-packages\django\template\debug.py in render_node
    1.             return node.render(context)
      ...
  • C:\django\web\lib\site-packages\mezzanine\template\__init__.py in render
    1.                     return tag_func(context, token)
      ...
  • C:\django\web\lib\site-packages\mezzanine\core\templatetags\mezzanine_tags.py in dashboard_column
    1.         output.append(t.render(Context(context)))
      ...
  • C:\django\web\lib\site-packages\django\template\base.py in render
    1.             return self._render(context)
      ...
  • C:\django\web\lib\site-packages\django\test\utils.py in instrumented_test_render
    1.     return self.nodelist.render(context)
      ...
  • C:\django\web\lib\site-packages\django\template\base.py in render
    1.                 bit = self.render_node(node, context)
      ...
  • C:\django\web\lib\site-packages\django\template\debug.py in render_node
    1.             return node.render(context)
      ...
  • C:\django\web\lib\site-packages\mezzanine\template\__init__.py in render
    1.                         result = tag_func(*parts)
      ...
  • C:\django\web\lib\site-packages\mezzanine\core\templatetags\mezzanine_tags.py in app_list
    1.     context["dashboard_app_list"] = admin_app_list(context["request"])
      ...
  • C:\django\web\lib\site-packages\mezzanine\core\templatetags\mezzanine_tags.py in admin_app_list
    1.     app_list.sort(key=sort)
      ...

Request information

GET

No GET data

POST

No POST data

FILES

No FILES data

COOKIES

VariableValue
djdttop
'5289'
sessionid
'adse40mswvc4mht5ri1w6muv3gnr89w8'
djdtTimerPanel
'off'
csrftoken
'yNPmLsRy72klCZKXicZoI0XCKDjd2Z1g'
djdt
'hide'
mezzanine-admin-toolbar
''

META

VariableValue
CMDLINE
'python manage.py runserver'
COMMONPROGRAMFILES
'C:\\Program Files (x86)\\Common Files'
REQUEST_METHOD
'GET'
PROGRAMFILES
'C:\\Program Files (x86)'
PROCESSOR_LEVEL
'6'
PROGRAMDATA
'C:\\ProgramData'
PROCESSOR_REVISION
'170a'
VS100COMNTOOLS
'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\Tools\\'
CONTENT_TYPE
'text/plain'
.PY;.PYC
'python.exe'
VS90COMNTOOLS
'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\Tools\\'
GATEWAY_INTERFACE
'CGI/1.1'
REMOTE_ADDR
'127.0.0.1'
COMPUTERNAME
'MARK-PC'
COMSPEC
'C:\\Program Files (x86)\\JPSoft\\TCCLE13\\TCC.EXE'
DJANGO_SETTINGS_MODULE
'website.settings'
LOCALAPPDATA
'C:\\Users\\Mark\\AppData\\Local'
TMP
'C:\\Users\\Mark\\AppData\\Local\\Temp'
PATH_INFO
'/admin/'
USERPROFILE
'C:\\Users\\Mark'
HTTP_CONNECTION
'keep-alive'
ALLUSERSPROFILE
'C:\\ProgramData'
CONTENT_LENGTH
''
PROCESSOR_IDENTIFIER
'Intel64 Family 6 Model 23 Stepping 10, GenuineIntel'
wsgi.version
(1, 0)
PROCESSOR_ARCHITEW6432
'AMD64'
SESSIONNAME
'Console'
SERVER_NAME
'Mark-PC'
SYSTEMDRIVE
'C:'
HTTP_ACCEPT_LANGUAGE
'en-US,en;q=0.8'
NUMBER_OF_PROCESSORS
'2'
USERNAME
'Mark'
WINDOWS_TRACING_FLAGS
'3'
wsgi.multithread
True
TEMP
'C:\\Users\\Mark\\AppData\\Local\\Temp'
SYSTEMROOT
'C:\\Windows'
_OLD_VIRTUAL_PATH
'C:\\Python33\\;C:\\Program Files\\Common Files\\Microsoft Shared\\Windows Live;C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows Live;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Windows Live\\Shared;c:\\python33\\;c:\\python33\\Scripts\\;c:\\python33\\DLLs\\;c:\\python33\\LIB\\;C:\\Program Files (x86)\\Git\\cmd'
COMMONPROGRAMW6432
'C:\\Program Files\\Common Files'
COMMONPROGRAMFILES(X86)
'C:\\Program Files (x86)\\Common Files'
HTTP_ACCEPT_ENCODING
'gzip,deflate,sdch'
REMOTE_HOST
''
HTTP_REFERER
'http://127.0.0.1:8000/'
VIRTUAL_ENV
'C:\\django\\web'
WINDOWS_TRACING_LOGFILE
'C:\\BVTBin\\Tests\\installpackage\\csilogfile.log'
wsgi.file_wrapper
''
wsgi.errors
<_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp437'>
SERVER_PORT
'8000'
CSRF_COOKIE_USED
True
PROCESSOR_ARCHITECTURE
'x86'
FP_NO_HOST_CHECK
'NO'
HTTP_USER_AGENT
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36'
USERDOMAIN
'Mark-PC'
APPDATA
'C:\\Users\\Mark\\AppData\\Roaming'
HOMEDRIVE
'C:'
OS
'Windows_NT'
PROGRAMW6432
'C:\\Program Files'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
LOGONSERVER
'\\\\MARK-PC'
wsgi.input
<_io.BufferedReader name=896>
RUN_MAIN
'true'
PROMPT
'(web) $P$G'
SERVER_PROTOCOL
'HTTP/1.1'
wsgi.url_scheme
'http'
wsgi.multiprocess
False
PUBLIC
'C:\\Users\\Public'
CSRF_COOKIE
'yNPmLsRy72klCZKXicZoI0XCKDjd2Z1g'
WINDIR
'C:\\Windows'
_OLD_VIRTUAL_PROMPT
'$P$G'
PSMODULEPATH
'C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\'
QUERY_STRING
''
HTTP_HOST
'127.0.0.1:8000'
HOMEPATH
'\\Users\\Mark'
PATH
'C:\\django\\web\\Scripts;C:\\Python33\\;C:\\Program Files\\Common Files\\Microsoft Shared\\Windows Live;C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows Live;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Windows Live\\Shared;c:\\python33\\;c:\\python33\\Scripts\\;c:\\python33\\DLLs\\;c:\\python33\\LIB\\;C:\\Program Files (x86)\\Git\\cmd'
wsgi.run_once
False
HTTP_COOKIE
'djdtTimerPanel=off; sessionid=adse40mswvc4mht5ri1w6muv3gnr89w8; djdttop=5289; djdt=hide; csrftoken=yNPmLsRy72klCZKXicZoI0XCKDjd2Z1g; mezzanine-admin-toolbar='
SCRIPT_NAME
''
PROGRAMFILES(X86)
'C:\\Program Files (x86)'
SERVER_SOFTWARE
'WSGIServer/0.2'
PATHEXT
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'

Settings

Using settings module website.settings

SettingValue
SECURE_PROXY_SSL_HEADER
None
DEFAULT_INDEX_TABLESPACE
''
TEMPLATE_CONTEXT_PROCESSORS
('django.contrib.auth.context_processors.auth',
 'django.contrib.messages.context_processors.messages',
 'django.core.context_processors.debug',
 'django.core.context_processors.i18n',
 'django.core.context_processors.static',
 'django.core.context_processors.media',
 'django.core.context_processors.request',
 'django.core.context_processors.tz',
 'mezzanine.conf.context_processors.settings')
INTERNAL_IPS
('127.0.0.1',)
FILE_CHARSET
'utf-8'
USE_THOUSAND_SEPARATOR
False
EMAIL_PORT
25
TESTING
False
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')
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader',
 'django.template.loaders.app_directories.Loader')
DATE_FORMAT
'N j, Y'
SETTINGS_MODULE
'website.settings'
DEFAULT_CONTENT_TYPE
'text/html'
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
DEFAULT_CHARSET
'utf-8'
NEVERCACHE_KEY
'********************'
SESSION_COOKIE_DOMAIN
None
EMAIL_HOST_USER
''
APPEND_SLASH
True
WSGI_APPLICATION
None
STATIC_ROOT
'C:\\django\\web\\website\\static'
SHORT_DATETIME_FORMAT
'm/d/Y P'
GRAPPELLI_ADMIN_TITLE
'Mezzanine'
PREPEND_WWW
False
FILE_UPLOAD_TEMP_DIR
None
LANGUAGE_COOKIE_NAME
'django_language'
SHORT_DATE_FORMAT
'm/d/Y'
LANGUAGES
(('en', 'English'),)
USE_X_FORWARDED_HOST
False
PACKAGE_NAME_FILEBROWSER
'filebrowser_safe'
EMAIL_USE_TLS
False
DEV_SERVER
True
TEMPLATE_STRING_IF_INVALID
''
SESSION_SAVE_EVERY_REQUEST
False
SESSION_COOKIE_PATH
'/'
EMAIL_SUBJECT_PREFIX
'[Django] '
LOGGING_CONFIG
'django.utils.log.dictConfig'
CACHE_MIDDLEWARE_KEY_PREFIX
'********************'
MIDDLEWARE_CLASSES
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'mezzanine.core.request.CurrentRequestMiddleware',
 'mezzanine.core.middleware.RedirectFallbackMiddleware',
 'mezzanine.core.middleware.TemplateForDeviceMiddleware',
 'mezzanine.core.middleware.TemplateForHostMiddleware',
 'mezzanine.core.middleware.AdminLoginInterfaceSelectorMiddleware',
 'mezzanine.core.middleware.SitePermissionMiddleware',
 'mezzanine.pages.middleware.PageMiddleware',
 'debug_toolbar.middleware.DebugToolbarMiddleware')
ALLOWED_HOSTS
['*']
TEMPLATE_DIRS
('C:\\django\\web\\website\\templates',)
YEAR_MONTH_FORMAT
'F Y'
AUTHENTICATION_BACKENDS
('mezzanine.core.auth_backends.MezzanineBackend',)
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
LANGUAGES_BIDI
('he', 'ar', 'fa', 'ur')
DEBUG_TOOLBAR_CONFIG
{'INTERCEPT_REDIRECTS': False}
FIXTURE_DIRS
()
SESSION_COOKIE_AGE
1209600
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder')
SESSION_CACHE_ALIAS
'default'
GRAPPELLI_INSTALLED
True
PROJECT_DIRNAME
'website'
SESSION_COOKIE_SECURE
False
LOGIN_URL
'/accounts/login/'
CSRF_COOKIE_PATH
'/'
SEND_BROKEN_LINK_EMAILS
False
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
COMMENTS_APP
'mezzanine.generic'
DISALLOWED_USER_AGENTS
()
MEDIA_URL
'/static/media/'
MONTH_DAY_FORMAT
'F j'
SESSION_ENGINE
'django.contrib.sessions.backends.db'
PROFANITIES_LIST
'********************'
LOCALE_PATHS
()
PASSWORD_RESET_TIMEOUT_DAYS
'********************'
STATIC_URL
'/static/'
TEMPLATE_DEBUG
True
PASSWORD_HASHERS
'********************'
TEST_RUNNER
'django.test.simple.DjangoTestSuiteRunner'
AUTH_USER_MODEL
'auth.User'
DEBUG_PROPAGATE_EXCEPTIONS
False
LOGIN_REDIRECT_URL
'/accounts/profile/'
USE_TZ
True
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
DATETIME_FORMAT
'N j, Y, P'
FIRST_DAY_OF_WEEK
0
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')
MANAGERS
()
USE_I18N
False
THOUSAND_SEPARATOR
','
SESSION_EXPIRE_AT_BROWSER_CLOSE
True
CSRF_COOKIE_NAME
'csrftoken'
NUMBER_GROUPING
0
FILE_UPLOAD_PERMISSIONS
420
COMMENTS_ALLOW_PROFANITIES
False
CSRF_COOKIE_HTTPONLY
False
DECIMAL_SEPARATOR
'.'
X_FRAME_OPTIONS
'SAMEORIGIN'
TRANSACTIONS_MANAGED
False
MEZZANINE_EDITOR_ENABLED
'True'
CACHE_MIDDLEWARE_SECONDS
600
EMAIL_HOST_PASSWORD
'********************'
PACKAGE_NAME_GRAPPELLI
'grappelli_safe'
LOGGING
{}
USE_L10N
False
LOGOUT_URL
'/accounts/logout/'
SESSION_FILE_PATH
None
EMAIL_HOST
'localhost'
DEFAULT_TABLESPACE
''
TIME_FORMAT
'P'
PROJECT_ROOT
'C:\\django\\web\\website'
SESSION_COOKIE_HTTPONLY
True
IGNORABLE_404_URLS
()
SECRET_KEY
'********************'
USE_ETAGS
False
INSTALLED_APPS
('mezzanine.boot',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.redirects',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.sitemaps',
 'django.contrib.staticfiles',
 'mezzanine.conf',
 'mezzanine.core',
 'mezzanine.generic',
 'mezzanine.blog',
 'mezzanine.forms',
 'mezzanine.pages',
 'mezzanine.galleries',
 'mezzanine.twitter',
 'mezzanine.accounts',
 'mezzanine_editor',
 'mediablog',
 'debug_toolbar',
 'filebrowser_safe',
 'south',
 'grappelli_safe',
 'django.contrib.admin',
 'django.contrib.comments')
ALLOWED_INCLUDE_ROOTS
()
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
CSRF_COOKIE_SECURE
False
ADMINS
()
GRAPPELLI_ADMIN_HEADLINE
'Mezzanine'
CSRF_COOKIE_DOMAIN
None
DEBUG
True
MEDIA_ROOT
'C:\\django\\web\\website\\static\\media'
ROOT_URLCONF
'website.urls'
TIME_ZONE
'EST'
MESSAGE_STORAGE
'django.contrib.messages.storage.cookie.CookieStorage'
SESSION_COOKIE_NAME
'sessionid'
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
ADMIN_FOR
()
SERVER_EMAIL
'root@localhost'
OPTIONAL_APPS
('debug_toolbar',
 'django_extensions',
 'compressor',
 'filebrowser_safe',
 'grappelli_safe')
STATICFILES_DIRS
()
DATABASES
{'default': {'ATOMIC_REQUESTS': False,
             'AUTOCOMMIT': True,
             'CONN_MAX_AGE': 0,
             'ENGINE': 'django.db.backends.sqlite3',
             'HOST': '',
             'NAME': 'C:\\django\\web\\website\\dev.db',
             'OPTIONS': {},
             'PASSWORD': '********************',
             'PORT': '',
             'TEST_CHARSET': None,
             'TEST_COLLATION': None,
             'TEST_MIRROR': None,
             'TEST_NAME': None,
             'TIME_ZONE': 'UTC',
             'USER': ''}}
USE_SOUTH
True
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
FORCE_SCRIPT_NAME
None
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler',
 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
TIME_INPUT_FORMATS
('%H:%M:%S', '%H:%M:%S.%f', '%H:%M')
FORMAT_MODULE_PATH
None
LANGUAGE_CODE
'en'
DEFAULT_FROM_EMAIL
'webmaster@localhost'
CACHE_MIDDLEWARE_ALIAS
'default'
ABSOLUTE_URL_OVERRIDES
{}
SITE_ID
1
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
DATABASE_ROUTERS
[]

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.

«
Reply all
Reply to author
Forward
0 new messages