On May 18, 9:35 pm, Russell Keith-Magee <russ...@keith-magee.com>
wrote:
> On Tue, May 18, 2010 at 6:12 PM, ben <mr.benw...@gmail.com> wrote:
> > Hi All,
>
> > After a recent svn update to my copy of Django/trunk I’ve been getting
> > a persistent error relating to module loading (see below). I am able
> > to create the same error from many but not all views/requests.
>
> > Interesting, when I run my code against a slightly older version of
> > Django trunk (at Rev. 13079) I don’t get these errors.
> > Is this a bug, or have I missed some backwards incompatible change?
>
> It's certainly possible you've found a bug. The module that is raising
> errors was subject to a number of changes in the last days of 1.2
> preparation, and while we've added lots of tests to make sure module
> loading works as expected, it's possible we've missed some edge cases.
>
> There is one thing that is a little suspicious. Your stack track
> contains the following at the end:
>
> File "/django/utils/module_loading.py", line 12, in
> module_has_submodule
>    # zipimport.zipimporter.find_moduleis documented to take
>
> This indicates that there is some confusion over exactly what code is
> running. Line 12 of module_loading.py in 1.2-final is a call tofind_module, 
> not a comment about zipimport. The first step in
> debugging this will be to purge all your .pyc files in case some
> timestamp problems are causing some stale code to execute.
>
> If you still see the problem, the next thing we need to know is
> exactly what is being imported, from where -- and most importantly --
> by what. Assuming the line numbers in the stack trace are correct, the
> block of code that you are tripping over is a walk through
> sys.meta_path, which suggests that you are using a custom module
> loader of some kind. We're going to need lots of details on exactly
> what your stack is doing - how you are storing modules, how they are
> being loaded, any special cases you may have, etc.
>
> The stack trace you've given us looks like it's been cut from a
> standard Django 500 page; if this is the case, it would be helpful to
> have all the local stack information from the last stack frame -- all
> the local variables, as well as anything you can furnish about
> sys.path and sys.meta_path. Ideally, this will lead to a simple test
> case where you can give us the exact conditions under which the
> problem arises.
>
> Yours,
> Russ Magee %-)
>

I have performed a system wide root level expunge of all .pyc's
and a svn up to 1.2.1 pre-alpha SVN-13294, but this sporadic error
still persists.

The same view will not always trigger the error, sometimes the view
function will run successfully, others not.

If i walk though the procedure with pdb (and if i understand what it
is telling me) it seems to indicate an issue with loading taglib and
perhaps one of my apps called 'featured'. but why would this app now
fail to be loaded properly, when previous to django Rev13079 it loaded
fine?

Below is a more full (read lengthy) stack trace. and some pdb output.

If there is more information that i can provide to assist please let
me know, and how to gather it.

Thanks in advance,
Ben


-------------------------------------------------------------------------------------------------
Example 500 tracback & request info ....

TypeError at /radio/

find_module() takes exactly 3 arguments (2 given)

Request Method:         GET
Request URL:    http://0.0.0.0:8000/radio/
Django Version:         1.2.1 pre-alpha SVN-13294
Exception Type:         TypeError
Exception Value:

find_module() takes exactly 3 arguments (2 given)

Exception Location:     /workspace/mos-trunk-pre/django/utils/
module_loading.py in module_has_submodule, line 12
Python Executable:      /sw/bin/python2.6
Python Version:         2.6.4
Python Path:    ['/workspace/mos-trunk-pre', '/workspace/mos-trunk-pre/
contrib', '/workspace/mos-trunk-pre/new_mos', '/sw/lib/python2.6/site-
packages/pip-0.6-py2.6.egg', '/sw/lib/python2.6/site-packages/
Sphinx-0.6.3-py2.6.egg', '/sw/lib/python2.6/site-packages/docutils-0.6-
py2.6.egg', '/sw/lib/python2.6/site-packages/Jinja2-2.2.1-py2.6.egg',
'/sw/lib/python2.6/site-packages/Pygments-1.1.1-py2.6.egg', '/sw/lib/
python2.6/site-packages/Satchmo-1.0_pre-py2.6.egg', '/sw/lib/python2.6/
site-packages/paramiko-1.7.6-py2.6.egg', '/Users/ben/src/pyamf', '/sw/
lib/python26.zip', '/sw/lib/python2.6', '/sw/lib/python2.6/plat-
darwin', '/sw/lib/python2.6/plat-mac', '/sw/lib/python2.6/plat-mac/lib-
scriptpackages', '/sw/lib/python2.6/lib-tk', '/sw/lib/python2.6/lib-
old', '/sw/lib/python2.6/lib-dynload', '/sw/lib/python2.6/site-
packages', '/sw/lib/python2.6/site-packages/PIL', '/workspace/mos-
trunk-pre/contrib/satchmo/apps', '/workspace/mos-trunk-pre/contrib/
satchmo/apps']
Server time:    Thu, 20 May 2010 14:33:49 +1000
Environment:

Request Method: GET
Request URL: http://0.0.0.0:8000/radio/
Django Version: 1.2.1 pre-alpha SVN-13294
Python Version: 2.6.4
Installed Applications:
['django.contrib.sites',
 'django.contrib.contenttypes',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.admin',
 'django.contrib.humanize',
 'django.contrib.markup',
 'django.contrib.flatpages',
 'django.contrib.webdesign',
 'django.contrib.syndication',
 'django.contrib.comments',
 'django.contrib.admindocs',
 'contrib.filebrowser',
 'contrib.typogrify',
 'contrib.tagging',
 'contrib.comment_utils',
 'contrib.photologue',
 'contrib.contact_form',
 'contrib.tube',
 'contrib.survey',
 'contrib.threadedcomments',
 'nesh.utils',
 'nesh.authutils',
 'nesh.thumbnail',
 'new_mos.apps.links',
 'new_mos.apps.events',
 'new_mos.apps.news',
 'new_mos.apps.music',
 'new_mos.apps.addr',
 'new_mos.apps.members',
 'new_mos.apps.featured',
 'new_mos.apps.wiki',
 'new_mos.apps.search',
 'new_mos.apps.advertising',
 'new_mos.apps.doc',
 'new_mos.apps.location',
 'new_mos.apps.pm',
 'new_mos.apps.mailing',
 'new_mos.apps.util',
 'new_mos.apps.win',
 'new_mos.apps.games',
 'new_mos.apps.download',
 'new_mos.apps.radio',
 'new_mos.apps.tv',
 'contrib.debug_toolbar']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'nesh.utils.middleware.ThreadLocals',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.transaction.TransactionMiddleware',
 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'debug_toolbar.middleware.DebugToolbarMiddleware')


Traceback:
File "/Users/ben/Documents/workspace/mos-trunk-pre/django/core/
handlers/base.py" in get_response
  100.                     response = callback(request,
*callback_args, **callback_kwargs)
File "/Users/ben/Documents/workspace/mos-trunk-pre/new_mos/apps/radio/
views.py" in index
  39.                        template_name='radio/index.html')
File "/Users/ben/Documents/workspace/mos-trunk-pre/django/views/
generic/list_detail.py" in object_list
  100.     t = template_loader.get_template(template_name)
File "/Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader.py" in get_template
  160.         template = get_template_from_string(template, origin,
template_name)
File "/Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader.py" in get_template_from_string
  168.     return Template(source, origin, name)
File "/Users/ben/Documents/workspace/mos-trunk-pre/contrib/
debug_toolbar/panels/template.py" in new_template_init
  28.     old_template_init(self, template_string, origin, name)
File "/Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py" in __init__
  158.         self.nodelist = compile_string(template_string, origin)
File "/Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py" in compile_string
  186.     return parser.parse()
File "/Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py" in parse
  282.                     compiled_result = compile_func(self, token)
File "/Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader_tags.py" in do_extends
  197.     nodelist = parser.parse()
File "/Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py" in parse
  282.                     compiled_result = compile_func(self, token)
File "/Users/ben/Documents/workspace/mos-trunk-pre/django/template/
defaulttags.py" in load
  917.             lib = get_library(taglib)
File "/Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py" in get_library
  1040.             lib = import_library(taglib_module)
File "/Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py" in import_library
  992.         if not module_has_submodule(app_module, taglib):
File "/Users/ben/Documents/workspace/mos-trunk-pre/django/utils/
module_loading.py" in module_has_submodule
  12.         if finder.find_module(name):


Exception Type: TypeError at /radio/
Exception Value: find_module() takes exactly 3 arguments (2 given)

Request information
GET

No GET data
POST

No POST data
FILES

No FILES data
COOKIES
Variable        Value
__utmz
'162457789.1274329733.91.1.utmcsr=(direct)|utmccn=(direct)|
utmcmd=(none)'
sessionid
'7730dbcaa41b2eb3e63189be7d4c4955'
csrftoken
'd4b6df9a59916bb36c395bbd3d9ddb99'
__utma
'162457789.2128631859.1257916194.1272437722.1274329733.91'
__utmb
'162457789.2.10.1274329733'
__utmc
'162457789'
META
Variable        Value
CONTENT_LENGTH
''
CONTENT_TYPE
'text/plain'
CSRF_COOKIE
'd4b6df9a59916bb36c395bbd3d9ddb99'
DISPLAY
':0'
DJANGO_SETTINGS_MODULE
'new_mos.settings'
EDITOR
'vim'
GATEWAY_INTERFACE
'CGI/1.1'
HOME
'/Users/ben'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
HTTP_ACCEPT_CHARSET
'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_ACCEPT_ENCODING
'gzip,deflate'
HTTP_ACCEPT_LANGUAGE
'en-us,en;q=0.5'
HTTP_CONNECTION
'keep-alive'
HTTP_COOKIE
'__utma=162457789.2128631859.1257916194.1272437722.1274329733.91;
csrftoken=d4b6df9a59916bb36c395bbd3d9ddb99; __utmc=162457789;
sessionid=7730dbcaa41b2eb3e63189be7d4c4955;
__utmb=162457789.2.10.1274329733;
__utmz=162457789.1274329733.91.1.utmcsr=(direct)|utmccn=(direct)|
utmcmd=(none)'
HTTP_HOST
'0.0.0.0:8000'
HTTP_KEEP_ALIVE
'300'
HTTP_REFERER
'http://0.0.0.0:8000/'
HTTP_USER_AGENT
'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.1.5)
Gecko/20091102 Firefox/3.5.5'
INFOPATH
'/sw/share/info:/sw/info:/usr/share/info'
LOGNAME
'ben'
MANPATH
'/sw/share/man:/opt/local/share/man:/usr/share/man:/usr/local/share/
man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man'
OLDPWD
'/workspace/mos-trunk-pre'
PATH
'/sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/
usr/sbin:/usr/X11R6/bin'
PATH_INFO
u'/radio/'
PERL5LIB
'/sw/lib/perl5:/sw/lib/perl5/darwin'
PWD
'/workspace/mos-trunk-pre/new_mos'
QUERY_STRING
''
REMOTE_ADDR
'127.0.0.1'
REMOTE_HOST
''
REQUEST_METHOD
'GET'
RUN_MAIN
'true'
SCRIPT_NAME
u''
SECURITYSESSIONID
'1f01f90'
SERVER_NAME
'mosmac.local'
SERVER_PORT
'8000'
SERVER_PROTOCOL
'HTTP/1.1'
SERVER_SOFTWARE
'WSGIServer/0.1 Python/2.6.4'
SGML_CATALOG_FILES
'/sw/etc/sgml/catalog'
SHELL
'/bin/bash'
SHLVL
'1'
TERM
'xterm-color'
TERM_PROGRAM
'Apple_Terminal'
TERM_PROGRAM_VERSION
'133-1'
TZ
'Australia/Sydney'
USER
'ben'
XML_CATALOG_FILES
'/sw/etc/xml/catalog'
_
'/sw/bin/python2.6'
__CF_USER_TEXT_ENCODING
'0x1F6:0:0'
wsgi.errors
<open file '<stderr>', mode 'w' at 0x280c0>
wsgi.file_wrapper
<class 'django.core.servers.basehttp.FileWrapper'>
wsgi.input
<socket._fileobject object at 0x33faeb0>
wsgi.multiprocess
False
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
Settings
Using settings module new_mos.settings
Setting         Value
ABSOLUTE_URL_OVERRIDES
{}
ACCOUNT_ACTIVATION_DAYS
1
ADMINS
(('Benjamin Ward', 'django.messa...@husslerecordings.com'),)
ADMIN_FOR
()
ADMIN_MEDIA_PREFIX
'/admin-media/'
ADVERTISING_CONTACTS
(('Ben', 'ben.w...@fakeurl.com.au'), ('Kaz',
'karen.b...@fakeurl.com.au'))
ALLOWED_INCLUDE_ROOTS
()
ANR_CONTACTS
(('Aden', 'aden.mull...@fakeurl.com.au'), ('Jeff',
'jeff.dr...@fakeurl.com.au'))
APPEND_SLASH
True
ASSETS_DIR
'assets'
AUDIO_STREAMER
'rtmp://174.143.150.192/ofla'
AUDIO_UPLOAD_ROOT
'/opt/RED5/red5/webapps/ofla/streams'
AUDIO_URL
'/media/audio/'
AUDIO_ZIP_ROOT
'/workspace/mos-trunk-pre/audio_zips/'
AUTHENTICATION_BACKENDS
('satchmo_store.accounts.email-auth.EmailBackend',
'django.contrib.auth.backends.ModelBackend')
AUTH_PROFILE_MODULE
'members.MemberProfile'
AUTO_CREATE_LINKS
False
BANNED_IPS
()
BOOKINGS_CONTACT
(('Stuart', 'stuart.balf...@fakeurl.com.au'), ('Trent',
'trent.gri...@fakeurl.com.au'))
BUSINESS_CONTACTS
(('Karen', 'karen.ing...@fakeurl.com.au'), ('MD c/of Sara',
'sara.jenk...@fakeurl.com.au'))
CACHE_BACKEND
'locmem:///'
CACHE_MIDDLEWARE_KEY_PREFIX
''
CACHE_MIDDLEWARE_SECONDS
600
CACHE_PREFIX
'Z'
CACHE_TIMEOUT
300
COMMENTS_ALLOW_PROFANITIES
False
COMMENTS_APP
'contrib.threadedcomments'
COMMENTS_BANNED_USERS_GROUP
None
COMMENTS_FIRST_FEW
0
COMMENTS_LATEST
5
COMMENTS_MODERATORS_GROUP
None
COMMENTS_SKETCHY_USERS_GROUP
None
COMPETITION_ADMIN_EMAIL
(('Ben', 'ben.w...@fakeurl.com.au'),)
CONTENT_MANAGERS
(('Ben', 'b...@husslerecordings.com'), ('General Manager c/of Sara',
'sara.jenk...@fakeurl.com.au'), ('Benjamin Ward',
'ben.w...@fakeurl.com.au'))
COVERAGE_MODULES
['new_mos.apps.links.models', 'new_mos.apps.links.views',
'new_mos.apps.events.models', 'new_mos.apps.events.views',
'new_mos.apps.news.models', 'new_mos.apps.news.views',
'new_mos.apps.music.models', 'new_mos.apps.music.views',
'new_mos.apps.addr.models', 'new_mos.apps.addr.views',
'new_mos.apps.members.models', 'new_mos.apps.members.views',
'new_mos.apps.featured.models', 'new_mos.apps.featured.views',
'new_mos.apps.wiki.models', 'new_mos.apps.wiki.views',
'new_mos.apps.search.models', 'new_mos.apps.search.views',
'new_mos.apps.advertising.models', 'new_mos.apps.advertising.views',
'new_mos.apps.doc.models', 'new_mos.apps.doc.views',
'new_mos.apps.location.models', 'new_mos.apps.location.views',
'new_mos.apps.pm.models', 'new_mos.apps.pm.views',
'new_mos.apps.mailing.models', 'new_mos.apps.mailing.views',
'new_mos.apps.util.models', 'new_mos.apps.util.views',
'new_mos.apps.win.models', 'new_mos.apps.win.views',
'new_mos.apps.games.models', 'new_mos.apps.games.views',
'new_mos.apps.download.models', 'new_mos.apps.download.views',
'new_mos.apps.radio.models', 'new_mos.apps.radio.views',
'new_mos.apps.tv.models', 'new_mos.apps.tv.views']
CSRF_COOKIE_DOMAIN
None
CSRF_COOKIE_NAME
'csrftoken'
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
DATABASES
{'default': {'ENGINE': 'django.db.backends.sqlite3', 'HOST': '',
'NAME': '/workspace/mos-trunk-pre/var/db/new_mos.db', 'OPTIONS': {},
'PASSWORD': '********************', 'PORT': '', 'TEST_CHARSET': None,
'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None,
'TIME_ZONE': 'Australia/Sydney', 'USER': ''}}
DATABASE_ENGINE
'sqlite3'
DATABASE_HOST
''
DATABASE_NAME
'/workspace/mos-trunk-pre/var/db/new_mos.db'
DATABASE_OPTIONS
{}
DATABASE_PASSWORD
'********************'
DATABASE_PORT
''
DATABASE_ROUTERS
[]
DATABASE_USER
''
DATETIME_FORMAT
'N j, Y, P'
DATETIME_INPUT_FORMATS
('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:
%S', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:
%M', '%m/%d/%y')
DATE_FORMAT
'N j, Y'
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')
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DEBUG_TOOLBAR_CONFIG
{'INTERCEPT_REDIRECTS': False, 'SHOW_TOOLBAR_CALLBACK': <function
custom_show_toolbar at 0x15b41b0>}
DEBUG_TOOLBAR_PANELS
('debug_toolbar.panels.version.VersionDebugPanel',
'debug_toolbar.panels.timer.TimerDebugPanel',
'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
'debug_toolbar.panels.headers.HeaderDebugPanel',
'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
'debug_toolbar.panels.template.TemplateDebugPanel',
'debug_toolbar.panels.sql.SQLDebugPanel',
'debug_toolbar.panels.logger.LoggingPanel')
DECIMAL_SEPARATOR
'.'
DEFAULT_CHARSET
'utf-8'
DEFAULT_CONTENT_TYPE
'text/html'
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL
'messa...@fakeurl.com.au'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DIGITAL_CONTACTS
(('Ben', 'ben.w...@fakeurl.com.au'), ('Kaz',
'karen.b...@fakeurl.com.au'))
DISALLOWED_NAMES
('root', 'postmaster', 'webmaster', 'adminadministrator', 'sysop',
'sysadm', 'system', 'daemon')
DISALLOWED_USER_AGENTS
()
DOWNLOAD_UPLOAD_ROOT
'/workspace/mos-trunk-pre/media_protected/downloads/'
DOWNLOAD_URL
'/media/download/'
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'mail.husslerecordings.com'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
'postmaster'
EMAIL_PORT
587
EMAIL_SUBJECT_PREFIX
'[Django] '
EMAIL_USE_TLS
True
ENABLE_COMMENT_NOTIFY
False
FB_PATH
'assets'
FILEBROWSER_JS
('/admin-media/js/getElementsBySelector.js', 'filebrowser/js/
AddFileBrowser.js')
FILE_CHARSET
'utf-8'
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler',
'django.core.files.uploadhandler.TemporaryFileUploadHandler')
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
FILE_UPLOAD_PERMISSIONS
None
FILE_UPLOAD_TEMP_DIR
None
FIRST_DAY_OF_WEEK
0
FIXTURE_DIRS
('/workspace/mos-trunk-pre/new_mos/fixtures',)
FORCE_SCRIPT_NAME
None
FORMAT_MODULE_PATH
None
GDATA_SETTINGS
{'DEVELOPER_KEY':
'AI39si6fD1qXHJQ2DZUfiJ41NAGJebpdmfg4cxG5_LiDskhtf7o5wdO4lNfp2DEie9pey_j87PrLETKW9rpoIGbQK7pFn101Eg',
'EMAIL': 'ministryofsoun...@gmail.com', 'PASSWORD':
'********************'}
IGNORABLE_404_ENDS
('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico',
'.php')
IGNORABLE_404_STARTS
('/cgi-bin/', '/_vti_bin', '/_vti_inf')
INSTALLED_APPS
['django.contrib.sites', 'django.contrib.contenttypes',
'django.contrib.auth', 'django.contrib.sessions',
'django.contrib.admin', 'django.contrib.humanize',
'django.contrib.markup', 'django.contrib.flatpages',
'django.contrib.webdesign', 'django.contrib.syndication',
'django.contrib.comments', 'django.contrib.admindocs',
'contrib.filebrowser', 'contrib.typogrify', 'contrib.tagging',
'contrib.comment_utils', 'contrib.photologue', 'contrib.contact_form',
'contrib.tube', 'contrib.survey', 'contrib.threadedcomments',
'nesh.utils', 'nesh.authutils', 'nesh.thumbnail',
'new_mos.apps.links', 'new_mos.apps.events', 'new_mos.apps.news',
'new_mos.apps.music', 'new_mos.apps.addr', 'new_mos.apps.members',
'new_mos.apps.featured', 'new_mos.apps.wiki', 'new_mos.apps.search',
'new_mos.apps.advertising', 'new_mos.apps.doc',
'new_mos.apps.location', 'new_mos.apps.pm', 'new_mos.apps.mailing',
'new_mos.apps.util', 'new_mos.apps.win', 'new_mos.apps.games',
'new_mos.apps.download', 'new_mos.apps.radio', 'new_mos.apps.tv',
'contrib.debug_toolbar']
INTERNAL_IPS
('127.0.0.1', '10.161.10.101', '10.161.10.203')
LABEL_MANAGER
(('Aden', 'aden.mull...@fakeurl.com.au'), ('Jeff',
'jeff.dr...@fakeurl.com.au'))
LANGUAGES
(('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs',
'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'),
('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en',
'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar',
'Argentinean Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa',
'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'),
('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi',
'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id',
'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja',
'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'),
('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk',
'Macedonian'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no',
'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'),
('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian
Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'),
('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-
latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te',
'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'),
('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw',
'Traditional Chinese'))
LANGUAGES_BIDI
('he', 'ar', 'fa')
LANGUAGE_CODE
'en-au'
LANGUAGE_COOKIE_NAME
'django_language'
LEGAL_CONTACTS
(('Karen', 'karen.ing...@fakeurl.com.au'), ('MD c/of Sara',
'sara.jenk...@fakeurl.com.au'))
LICENSING_CONTACTS
(('Karen', 'karen.ing...@fakeurl.com.au'), ('MD c/of Sara',
'sara.jenk...@fakeurl.com.au'))
LINK_AUTO
u'\nYou can mark Artists with <code>@artist@</code>, Releases with
<code>||release||</code>\nand they will be automatically linked to the
corresponding item when item is displayed.\n<br />\nMarked items
<strong>must</strong> be separated with at least one whitespace from
\nthe surrounding content.\n'
LINK_HELP
u'\nYou can mark Artists with <code>@artist@</code>, Releases with
<code>||release||</code>\nand they will be automatically linked to the
corresponding item when item is displayed.\n<br />\nMarked items
<strong>must</strong> be separated with at least one whitespace from
\nthe surrounding content.\n'
LOCALE_PATHS
()
LOCAL_DEV
True
LOGFILE
'satchmo.log'
LOGIN_REDIRECT_URL
'/accounts/profile/'
LOGIN_URL
'/accounts/login/'
LOGOUT_URL
'/accounts/logout/'
MAINTENANCE_MODE
False
MANAGERS
(('Ben', 'b...@husslerecordings.com'), ('General Manager c/of Sara',
'sara.jenk...@fakeurl.com.au'), ('Benjamin Ward',
'ben.w...@fakeurl.com.au'))
MANDATORY_FEATURED
('events.tour', 'news.news')
MARKDOWN_HELP
u'\nUse <a href="http://daringfireball.net/projects/markdown/basics";
target="_blank">Markdown</a> syntax.\n'
MARKDOWN_HELP_AUTO
u'\nUse <a href="http://daringfireball.net/projects/markdown/basics";
target="_blank">Markdown</a> syntax.\n<br />\nYou can mark Artists
with <code>@artist@</code>, Releases with <code>||release||</code>
\nand they will be automatically linked to the corresponding item when
item is displayed.\n<br />\nMarked items <strong>must</strong> be
separated with at least one whitespace from\nthe surrounding content.
\n'
MARKETING_CONTACTS
(('Luke', 'luke.bruns...@fakeurl.com.au'), ('Kaz',
'karen.b...@fakeurl.com.au'))
MAX_FEATURED_LIST
12
MAX_FEATURED_RELEASES_LIST
10
MAX_FEATURED_TOP
4
MEDIA_ROOT
'/workspace/mos-trunk-pre/media'
MEDIA_URL
'/media/'
MEMBERS_UPLOAD_ROOT
'members'
MESSAGE_STORAGE
'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'
MIDDLEWARE_CLASSES
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'nesh.utils.middleware.ThreadLocals',
'django.middleware.doc.XViewMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware')
MONTH_DAY_FORMAT
'F j'
NUMBER_GROUPING
0
PASSWORD_RESET_TIMEOUT_DAYS
'********************'
PHOTOLOGUE_DIR
'assets'
PREPEND_WWW
False
PROFANITIES_LIST
'********************'
PROJECT_ROOT
'/workspace/mos-trunk-pre/new_mos'
ROOT_URLCONF
'new_mos.urls'
SATCHMO_APPS_PATH
'/workspace/mos-trunk-pre/contrib/satchmo/apps'
SATCHMO_SETTINGS
{'MULTISHOP': False, 'SHOP_BASE': '/shop'}
SEARCH_PARAMS
{'host': '127.0.0.1', 'port': 3312, 'sphinx_index':
'new_mos.apps.search.search_index'}
SECRET_KEY
'********************'
SEND_BROKEN_LINK_EMAILS
False
SERVER_EMAIL
'r...@localhost'
SESSION_COOKIE_AGE
1209600
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
SESSION_COOKIE_PATH
'/'
SESSION_COOKIE_SECURE
False
SESSION_ENGINE
'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_FILE_PATH
None
SESSION_SAVE_EVERY_REQUEST
False
SETTINGS_MODULE
'new_mos.settings'
SHORT_DATETIME_FORMAT
'm/d/Y P'
SHORT_DATE_FORMAT
'm/d/Y'
SITE_DOMAIN
'fakeurl.com.au'
SITE_ID
1
SITE_NAME
'new_mos'
SITE_ROOT
'/workspace/mos-trunk-pre'
STREAMS_ROOT
'/opt/RED5/red5/webapps/ofla/streams'
TEMPLATE_CONTEXT_PROCESSORS
('django.core.context_processors.auth',
'django.core.context_processors.request',
'django.core.context_processors.media',
'new_mos.apps.search.context.categories',
'new_mos.apps.pm.context.pm_inbox_cnt',
'django.core.context_processors.debug')
TEMPLATE_DEBUG
True
TEMPLATE_DIRS
('/workspace/mos-trunk-pre/new_mos/templates',)
TEMPLATE_LOADERS
('django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source')
TEMPLATE_STRING_IF_INVALID
''
TEST_DATABASE_CHARSET
None
TEST_DATABASE_COLLATION
None
TEST_DATABASE_NAME
None
TEST_RUNNER
'tests_with_coverage.run_tests'
THOUSAND_SEPARATOR
','
THUMBNAILS
{'admin_thumbnail': {'crop': False, 'height': 57, 'width': 100},
'chart': {'crop': False, 'height': 40, 'width': 100}, 'gallery_thumb':
{'crop': True, 'height': 100, 'width': 100}, 'heroimage': {'crop':
True, 'height': 250, 'width': 250}, 'jumbo': {'crop': True, 'height':
260, 'width': 625}, 'photodetail': {'crop': False, 'height': 600,
'width': 600}, 'sidebar': {'crop': True, 'height': 50, 'width': 50},
'thumbnail': {'crop': True, 'height': 100, 'width': 100}, 'tiny':
{'crop': True, 'height': 20, 'width': 20}}
TIME_FORMAT
'P'
TIME_INPUT_FORMATS
('%H:%M:%S', '%H:%M')
TIME_ZONE
'Australia/Sydney'
TOURING_CONTACTS
(('Jeff', 'jeff.dr...@fakeurl.com.au'), ('Jo',
'josephine.br...@fakeurl.com.au'), ('James',
'james.deigh...@fakeurl.com.au'))
TRANSACTIONS_MANAGED
False
URL_VALIDATOR_USER_AGENT
u'Django/1.2.1 pre-alpha SVN-13294 (http://www.djangoproject.com)'
USE_ETAGS
False
USE_I18N
False
USE_L10N
False
USE_THOUSAND_SEPARATOR
False
WORKFLOW_AUTOCREATED
3
WORKFLOW_CREATED
1
WORKFLOW_DEFAULT
2
WORKFLOW_DELETED
4
WORKFLOW_INVALID
5
WORKFLOW_PUBLISHED
2
WORKFLOW_SHOW
(2, 3)
WORKFLOW_STAGES
((1, 'Created'), (2, 'Published'), (3, 'AUTO'), (4, 'DELETED'), (5,
'INVALID'))
X_SEND_PROTECTED_DIR
'/workspace/mos-trunk-pre/media_protected'
YEAR_MONTH_FORMAT
'F Y'

-------------------------------------------------------------------------------------------------
PDB output....

Django version 1.2.1 pre-alpha SVN-13294, using settings
'new_mos.settings'
Development server is running at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
non_user_adverts found count 0
[]
found no advert
non_user_adverts found count 1
[<Advert: Advert object>]
Thu, 20 May 2010 16:34:45 root         INFO     radio sponsor
Thu, 20 May 2010 16:34:45 root         INFO     path=/events/list/
advert.path=/radio/
found no advert
[20/May/2010 16:34:46] "GET /events/list/ HTTP/1.1" 200 420238
[20/May/2010 16:34:47] "GET /media/css/reset.css HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/css/global.css HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/css/stylesheet.css HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/css/mooslider.css HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/css/viewer.css HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/js/swfobject.js HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/js/swfobject_2_1/swfobject.js HTTP/
1.1" 304 0
[20/May/2010 16:34:47] "GET /media/css/debug.css HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/js/moo/1.2/mootools-1.2-core-nc.js
HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/js/moo/1.2/mootools-1.2-more.js
HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/js/_class.viewer.js HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/css/smoothbox.css HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/js/smoothbox.js HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/css/events_base.css HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /__debug__/m/js/toolbar.min.js HTTP/1.1"
304 0
[20/May/2010 16:34:47] "GET /media/img/skins/not_a_member_2.png HTTP/
1.1" 304 0
[20/May/2010 16:34:47] "GET /media/img/galleryoverlay.gif HTTP/1.1"
304 0
[20/May/2010 16:34:47] "GET /media/assets/photos/2010/Mar/30/cache/
IMG_5150_thumbnail.jpg HTTP/1.1" 302 0
[20/May/2010 16:34:47] "GET /media/assets/photos/2010/Mar/29/cache/
Hook__Sling_27_March_062_thumbnail.jpg HTTP/1.1" 302 0
[20/May/2010 16:34:47] "GET /media/assets/photos/2010/Mar/29/cache/
DSC02852_1_thumbnail.jpg HTTP/1.1" 302 0
[20/May/2010 16:34:47] "GET /media/assets/photos/2010/Mar/29/cache/
IMG_4424_thumbnail.jpg HTTP/1.1" 302 0
[20/May/2010 16:34:47] "GET /media/assets/photos/2010/Mar/23/cache/
01_thumbnail.jpg HTTP/1.1" 302 0
[20/May/2010 16:34:47] "GET /__debug__/m/js/jquery.js HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/assets/photos/2010/Mar/23/cache/
IMG_7230_thumbnail.jpg HTTP/1.1" 302 0
[20/May/2010 16:34:47] "GET /media/img/logo.jpg HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/img/skins/
SessionsSeven_masthead8.jpg HTTP/1.1" 304 0
[20/May/2010 16:34:47] "GET /media/templateold/images/transparent.gif
HTTP/1.1" 302 0
[20/May/2010 16:34:48] "GET /media/assets/photos/2010/Mar/30/cache/
IMG_5150_thumbnail.jpg/ HTTP/1.1" 404 1900
[20/May/2010 16:34:48] "GET /media/assets/photos/2010/Mar/29/cache/
Hook__Sling_27_March_062_thumbnail.jpg/ HTTP/1.1" 404 1948
[20/May/2010 16:34:48] "GET /media/assets/photos/2010/Mar/29/cache/
DSC02852_1_thumbnail.jpg/ HTTP/1.1" 404 1906
[20/May/2010 16:34:48] "GET /media/assets/photos/2010/Mar/29/cache/
IMG_4424_thumbnail.jpg/ HTTP/1.1" 404 1900
[20/May/2010 16:34:48] "GET /media/assets/photos/2010/Mar/23/cache/
01_thumbnail.jpg/ HTTP/1.1" 404 1882
[20/May/2010 16:34:48] "GET /media/assets/photos/2010/Mar/23/cache/
IMG_7230_thumbnail.jpg/ HTTP/1.1" 404 1900
[20/May/2010 16:34:48] "GET /__debug__/m/css/toolbar.min.css HTTP/1.1"
304 0
[20/May/2010 16:34:48] "GET /media/templateold/images/transparent.gif/
HTTP/1.1" 404 1840
[20/May/2010 16:34:48] "GET /__debug__/m/img/djdt_vertical.png HTTP/
1.1" 304 0
> /Users/ben/Documents/workspace/mos-trunk-pre/django/utils/module_loading.py(13)module_has_submodule()
-> if finder.find_module(name):
(Pdb) l
  8         name = ".".join([package.__name__, module_name])
  9         if name in sys.modules:
 10             return True
 11         for finder in sys.meta_path:
 12             import pdb; pdb.set_trace()
 13  ->         if finder.find_module(name):
 14                 return True
 15         for entry in package.__path__:  # No __path__, then not a
package.
 16             try:
 17                 # Try the cached finder.
 18                 finder = sys.path_importer_cache[entry]
(Pdb) n
TypeError: 'find_module() takes exactly 3 arguments (2 given)'
> /Users/ben/Documents/workspace/mos-trunk-pre/django/utils/module_loading.py(13)module_has_submodule()
-> if finder.find_module(name):
(Pdb) locals()
{'name': u'django.templatetags.featured', 'package': <module
'django.templatetags' from '/Users/ben/Documents/workspace/mos-trunk-
pre/django/templatetags/__init__.pyc'>, '__exception__': (<type
'exceptions.TypeError'>, 'find_module() takes exactly 3 arguments (2
given)'), 'module_name': u'featured', 'pdb': <module 'pdb' from '/sw/
lib/python2.6/pdb.py'>, 'finder': <pyamf.util.imports.ModuleFinder
object at 0x2b8bd70>}
(Pdb) sys.meta_path
[<pyamf.util.imports.ModuleFinder object at 0x2b8bd70>]
(Pdb) finder
<pyamf.util.imports.ModuleFinder object at 0x2b8bd70>
(Pdb) w
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/management/
commands/runserver.py(60)inner_run()
-> run(addr, int(port), handler)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(721)run()
-> httpd.serve_forever()
  /sw/lib/python2.6/SocketServer.py(226)serve_forever()
-> self._handle_request_noblock()
  /sw/lib/python2.6/SocketServer.py(281)_handle_request_noblock()
-> self.process_request(request, client_address)
  /sw/lib/python2.6/SocketServer.py(307)process_request()
-> self.finish_request(request, client_address)
  /sw/lib/python2.6/SocketServer.py(320)finish_request()
-> self.RequestHandlerClass(request, client_address, self)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(562)__init__()
-> BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
  /sw/lib/python2.6/SocketServer.py(615)__init__()
-> self.handle()
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(607)handle()
-> handler.run(self.server.get_app())
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(280)run()
-> self.result = application(self.environ, self.start_response)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(674)__call__()
-> return self.application(environ, start_response)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/handlers/
wsgi.py(241)__call__()
-> response = self.get_response(request)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/handlers/
base.py(100)get_response()
-> response = callback(request, *callback_args, **callback_kwargs)
  /Users/ben/Documents/workspace/mos-trunk-pre/new_mos/apps/events/
views.py(99)tours()
-> template_name='events/tours.html')
  /Users/ben/Documents/workspace/mos-trunk-pre/django/views/generic/
list_detail.py(100)object_list()
-> t = template_loader.get_template(template_name)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader.py(160)get_template()
-> template = get_template_from_string(template, origin,
template_name)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader.py(168)get_template_from_string()
-> return Template(source, origin, name)
  /Users/ben/Documents/workspace/mos-trunk-pre/contrib/debug_toolbar/
panels/template.py(28)new_template_init()
-> old_template_init(self, template_string, origin, name)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(158)__init__()
-> self.nodelist = compile_string(template_string, origin)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(186)compile_string()
-> return parser.parse()
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(282)parse()
-> compiled_result = compile_func(self, token)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader_tags.py(197)do_extends()
-> nodelist = parser.parse()
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(282)parse()
-> compiled_result = compile_func(self, token)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
defaulttags.py(917)load()
-> lib = get_library(taglib)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(1040)get_library()
-> lib = import_library(taglib_module)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(992)import_library()
-> if not module_has_submodule(app_module, taglib):
> /Users/ben/Documents/workspace/mos-trunk-pre/django/utils/module_loading.py(13)module_has_submodule()
-> if finder.find_module(name):
(Pdb) locals()
{'name': u'django.templatetags.featured', 'package': <module
'django.templatetags' from '/Users/ben/Documents/workspace/mos-trunk-
pre/django/templatetags/__init__.pyc'>, '__exception__': (<type
'exceptions.TypeError'>, 'find_module() takes exactly 3 arguments (2
given)'), 'module_name': u'featured', 'pdb': <module 'pdb' from '/sw/
lib/python2.6/pdb.py'>, 'finder': <pyamf.util.imports.ModuleFinder
object at 0x2b8bd70>}
(Pdb) c
[20/May/2010 16:43:12] "GET /events/tours/ HTTP/1.1" 500 215502
> /Users/ben/Documents/workspace/mos-trunk-pre/django/utils/module_loading.py(13)module_has_submodule()
-> if finder.find_module(name):
(Pdb) c
Traceback (most recent call last):
  File "/Users/ben/Documents/workspace/mos-trunk-pre/django/core/
servers/basehttp.py", line 281, in run
    self.finish_response()
  File "/Users/ben/Documents/workspace/mos-trunk-pre/django/core/
servers/basehttp.py", line 321, in finish_response
    self.write(data)
  File "/Users/ben/Documents/workspace/mos-trunk-pre/django/core/
servers/basehttp.py", line 400, in write
    self.send_headers()
  File "/Users/ben/Documents/workspace/mos-trunk-pre/django/core/
servers/basehttp.py", line 464, in send_headers
    self.send_preamble()
  File "/Users/ben/Documents/workspace/mos-trunk-pre/django/core/
servers/basehttp.py", line 382, in send_preamble
    'Date: %s\r\n' % http_date()
  File "/sw/lib/python2.6/socket.py", line 300, in write
    self.flush()
  File "/sw/lib/python2.6/socket.py", line 286, in flush
    self._sock.sendall(buffer)
error: [Errno 32] Broken pipe
> /Users/ben/Documents/workspace/mos-trunk-pre/django/utils/module_loading.py(13)module_has_submodule()
-> if finder.find_module(name):
(Pdb) w
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/management/
commands/runserver.py(60)inner_run()
-> run(addr, int(port), handler)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(721)run()
-> httpd.serve_forever()
  /sw/lib/python2.6/SocketServer.py(226)serve_forever()
-> self._handle_request_noblock()
  /sw/lib/python2.6/SocketServer.py(281)_handle_request_noblock()
-> self.process_request(request, client_address)
  /sw/lib/python2.6/SocketServer.py(307)process_request()
-> self.finish_request(request, client_address)
  /sw/lib/python2.6/SocketServer.py(320)finish_request()
-> self.RequestHandlerClass(request, client_address, self)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(562)__init__()
-> BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
  /sw/lib/python2.6/SocketServer.py(615)__init__()
-> self.handle()
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(607)handle()
-> handler.run(self.server.get_app())
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(280)run()
-> self.result = application(self.environ, self.start_response)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(674)__call__()
-> return self.application(environ, start_response)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/handlers/
wsgi.py(241)__call__()
-> response = self.get_response(request)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/handlers/
base.py(100)get_response()
-> response = callback(request, *callback_args, **callback_kwargs)
  /Users/ben/Documents/workspace/mos-trunk-pre/new_mos/apps/events/
views.py(99)tours()
-> template_name='events/tours.html')
  /Users/ben/Documents/workspace/mos-trunk-pre/django/views/generic/
list_detail.py(100)object_list()
-> t = template_loader.get_template(template_name)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader.py(160)get_template()
-> template = get_template_from_string(template, origin,
template_name)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader.py(168)get_template_from_string()
-> return Template(source, origin, name)
  /Users/ben/Documents/workspace/mos-trunk-pre/contrib/debug_toolbar/
panels/template.py(28)new_template_init()
-> old_template_init(self, template_string, origin, name)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(158)__init__()
-> self.nodelist = compile_string(template_string, origin)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(186)compile_string()
-> return parser.parse()
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(282)parse()
-> compiled_result = compile_func(self, token)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader_tags.py(197)do_extends()
-> nodelist = parser.parse()
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(282)parse()
-> compiled_result = compile_func(self, token)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
defaulttags.py(917)load()
-> lib = get_library(taglib)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(1040)get_library()
-> lib = import_library(taglib_module)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(992)import_library()
-> if not module_has_submodule(app_module, taglib):
> /Users/ben/Documents/workspace/mos-trunk-pre/django/utils/module_loading.py(13)module_has_submodule()
-> if finder.find_module(name):
(Pdb) c
Traceback (most recent call last):
  File "/Users/ben/Documents/workspace/mos-trunk-pre/django/core/
servers/basehttp.py", line 281, in run
    self.finish_response()
  File "/Users/ben/Documents/workspace/mos-trunk-pre/django/core/
servers/basehttp.py", line 321, in finish_response
    self.write(data)
  File "/Users/ben/Documents/workspace/mos-trunk-pre/django/core/
servers/basehttp.py", line 400, in write
    self.send_headers()
  File "/Users/ben/Documents/workspace/mos-trunk-pre/django/core/
servers/basehttp.py", line 464, in send_headers
    self.send_preamble()
  File "/Users/ben/Documents/workspace/mos-trunk-pre/django/core/
servers/basehttp.py", line 382, in send_preamble
    'Date: %s\r\n' % http_date()
  File "/sw/lib/python2.6/socket.py", line 300, in write
    self.flush()
  File "/sw/lib/python2.6/socket.py", line 286, in flush
    self._sock.sendall(buffer)
error: [Errno 32] Broken pipe
non_user_adverts found count 0
[]
found no advert
non_user_adverts found count 1
[<Advert: Advert object>]
Thu, 20 May 2010 16:44:10 root         INFO     radio sponsor
Thu, 20 May 2010 16:44:10 root         INFO     path=/radio/
advert.path=/radio/
Thu, 20 May 2010 16:44:10 root         INFO
path.startswith(advert.path) so we append radio sponsor
found 1 advert
[20/May/2010 16:44:11] "GET /radio/ HTTP/1.1" 200 208554
[20/May/2010 16:44:11] "GET /media/css/reset.css HTTP/1.1" 304 0
[20/May/2010 16:44:11] "GET /media/css/global.css HTTP/1.1" 304 0
[20/May/2010 16:44:11] "GET /media/css/stylesheet.css HTTP/1.1" 304 0
[20/May/2010 16:44:11] "GET /media/css/mooslider.css HTTP/1.1" 304 0
[20/May/2010 16:44:11] "GET /media/css/viewer.css HTTP/1.1" 304 0
[20/May/2010 16:44:11] "GET /media/js/swfobject.js HTTP/1.1" 304 0
[20/May/2010 16:44:11] "GET /media/js/swfobject_2_1/swfobject.js HTTP/
1.1" 304 0
[20/May/2010 16:44:11] "GET /media/css/debug.css HTTP/1.1" 304 0
[20/May/2010 16:44:11] "GET /media/js/moo/1.2/mootools-1.2-core-nc.js
HTTP/1.1" 304 0
[20/May/2010 16:44:11] "GET /media/js/moo/1.2/mootools-1.2-more.js
HTTP/1.1" 304 0
[20/May/2010 16:44:11] "GET /media/js/_class.viewer.js HTTP/1.1" 304 0
[20/May/2010 16:44:11] "GET /media/css/smoothbox.css HTTP/1.1" 304 0
[20/May/2010 16:44:11] "GET /media/js/smoothbox.js HTTP/1.1" 304 0
[20/May/2010 16:44:11] "GET /media/css/radio.css HTTP/1.1" 304 0
[20/May/2010 16:44:11] "GET /__debug__/m/js/toolbar.min.js HTTP/1.1"
304 0
[20/May/2010 16:44:12] "GET /media/templateold/images/transparent.gif
HTTP/1.1" 302 0
[20/May/2010 16:44:12] "GET /__debug__/m/js/jquery.js HTTP/1.1" 304 0
[20/May/2010 16:44:12] "GET /media/templateold/images/transparent.gif/
HTTP/1.1" 404 1840
[20/May/2010 16:44:12] "GET /__debug__/m/css/toolbar.min.css HTTP/1.1"
304 0
[20/May/2010 16:44:12] "GET /media/assets/adverts/300x250/MOSA-
Radio_web-island_sponsor.jpg HTTP/1.1" 304 0
> /Users/ben/Documents/workspace/mos-trunk-pre/django/utils/module_loading.py(13)module_has_submodule()
-> if finder.find_module(name):
(Pdb) l
  8         name = ".".join([package.__name__, module_name])
  9         if name in sys.modules:
 10             return True
 11         for finder in sys.meta_path:
 12             import pdb; pdb.set_trace()
 13  ->         if finder.find_module(name):
 14                 return True
 15         for entry in package.__path__:  # No __path__, then not a
package.
 16             try:
 17                 # Try the cached finder.
 18                 finder = sys.path_importer_cache[entry]
(Pdb) n
TypeError: 'find_module() takes exactly 3 arguments (2 given)'
> /Users/ben/Documents/workspace/mos-trunk-pre/django/utils/module_loading.py(13)module_has_submodule()
-> if finder.find_module(name):
(Pdb) l
  8         name = ".".join([package.__name__, module_name])
  9         if name in sys.modules:
 10             return True
 11         for finder in sys.meta_path:
 12             import pdb; pdb.set_trace()
 13  ->         if finder.find_module(name):
 14                 return True
 15         for entry in package.__path__:  # No __path__, then not a
package.
 16             try:
 17                 # Try the cached finder.
 18                 finder = sys.path_importer_cache[entry]
(Pdb) w
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/management/
commands/runserver.py(60)inner_run()
-> run(addr, int(port), handler)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(721)run()
-> httpd.serve_forever()
  /sw/lib/python2.6/SocketServer.py(226)serve_forever()
-> self._handle_request_noblock()
  /sw/lib/python2.6/SocketServer.py(281)_handle_request_noblock()
-> self.process_request(request, client_address)
  /sw/lib/python2.6/SocketServer.py(307)process_request()
-> self.finish_request(request, client_address)
  /sw/lib/python2.6/SocketServer.py(320)finish_request()
-> self.RequestHandlerClass(request, client_address, self)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(562)__init__()
-> BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
  /sw/lib/python2.6/SocketServer.py(615)__init__()
-> self.handle()
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(607)handle()
-> handler.run(self.server.get_app())
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(280)run()
-> self.result = application(self.environ, self.start_response)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/servers/
basehttp.py(674)__call__()
-> return self.application(environ, start_response)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/handlers/
wsgi.py(241)__call__()
-> response = self.get_response(request)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/core/handlers/
base.py(100)get_response()
-> response = callback(request, *callback_args, **callback_kwargs)
  /Users/ben/Documents/workspace/mos-trunk-pre/new_mos/apps/music/
views.py(53)index()
-> template_name='music/index.html')
  /Users/ben/Documents/workspace/mos-trunk-pre/django/views/generic/
list_detail.py(100)object_list()
-> t = template_loader.get_template(template_name)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader.py(160)get_template()
-> template = get_template_from_string(template, origin,
template_name)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader.py(168)get_template_from_string()
-> return Template(source, origin, name)
  /Users/ben/Documents/workspace/mos-trunk-pre/contrib/debug_toolbar/
panels/template.py(28)new_template_init()
-> old_template_init(self, template_string, origin, name)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(158)__init__()
-> self.nodelist = compile_string(template_string, origin)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(186)compile_string()
-> return parser.parse()
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(282)parse()
-> compiled_result = compile_func(self, token)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader_tags.py(197)do_extends()
-> nodelist = parser.parse()
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(282)parse()
-> compiled_result = compile_func(self, token)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader_tags.py(175)do_block()
-> nodelist = parser.parse(('endblock', 'endblock %s' % block_name))
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(282)parse()
-> compiled_result = compile_func(self, token)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader_tags.py(215)do_include()
-> return ConstantIncludeNode(path[1:-1])
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader_tags.py(130)__init__()
-> t = get_template(template_path)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader.py(160)get_template()
-> template = get_template_from_string(template, origin,
template_name)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
loader.py(168)get_template_from_string()
-> return Template(source, origin, name)
  /Users/ben/Documents/workspace/mos-trunk-pre/contrib/debug_toolbar/
panels/template.py(28)new_template_init()
-> old_template_init(self, template_string, origin, name)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(158)__init__()
-> self.nodelist = compile_string(template_string, origin)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(186)compile_string()
-> return parser.parse()
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(282)parse()
-> compiled_result = compile_func(self, token)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
defaulttags.py(917)load()
-> lib = get_library(taglib)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(1040)get_library()
-> lib = import_library(taglib_module)
  /Users/ben/Documents/workspace/mos-trunk-pre/django/template/
__init__.py(992)import_library()
-> if not module_has_submodule(app_module, taglib):
> /Users/ben/Documents/workspace/mos-trunk-pre/django/utils/module_loading.py(13)module_has_submodule()
-> if finder.find_module(name):
(Pdb) locals()
{'name': u'django.templatetags.featured', 'package': <module
'django.templatetags' from '/Users/ben/Documents/workspace/mos-trunk-
pre/django/templatetags/__init__.pyc'>, '__exception__': (<type
'exceptions.TypeError'>, 'find_module() takes exactly 3 arguments (2
given)'), 'module_name': u'featured', 'pdb': <module 'pdb' from '/sw/
lib/python2.6/pdb.py'>, 'finder': <pyamf.util.imports.ModuleFinder
object at 0x2b8bd70>}
(Pdb)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to