[p2pu-dev] Problem with installing lernanta

i at paulbooker.co.uk i at paulbooker.co.uk
Tue Sep 27 13:52:55 UTC 2011


This seems to work fine.

I now have the following problem via both approaches ..

Environment:

Request Method: GET
Request URL: http://0.0.0.0:8000/en/
Django Version: 1.2.3
Python Version: 2.6.1
Installed Applications:
['django.contrib.sites',
  'django.contrib.auth',
  'django.contrib.contenttypes',
  'django.contrib.sessions',
  'django.contrib.messages',
  'django.contrib.admin',
  'django.contrib.redirects',
  'south',
  'wellknown',
  'lernanta.apps.pagination',
  'lernanta.apps.users',
  'lernanta.apps.search',
  'lernanta.apps.chat',
  'lernanta.apps.l10n',
  'lernanta.apps.dashboard',
  'lernanta.apps.relationships',
  'lernanta.apps.activity',
  'lernanta.apps.statuses',
  'messages',
  'taggit',
  'lernanta.apps.preferences',
  'lernanta.apps.drumbeatmail',
  'lernanta.apps.links',
  'django_push.subscriber',
  'djcelery',
  'django_openid_auth',
  'ckeditor',
  'lernanta.apps.richtext',
  'lernanta.apps.replies',
  'lernanta.apps.signups',
  'lernanta.apps.content',
  'lernanta.apps.schools',
  'voting',
  'lernanta.apps.news',
  'lernanta.apps.pages',
  'lernanta.apps.projects',
  'lernanta.apps.badges',
  'lernanta.apps.drumbeat',
  'django_obi',
  'lernanta.apps.tags',
  'lernanta.apps.tracker',
  'debug_toolbar',
  'django_nose',
  'django.contrib.admindocs']
Installed Middleware:
('drumbeat.middleware.NotFoundMiddleware',
  'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
  'l10n.middleware.LocaleURLRewriter',
  'django.middleware.common.CommonMiddleware',
  'django.contrib.sessions.middleware.SessionMiddleware',
  'django.middleware.csrf.CsrfViewMiddleware',
  'django.contrib.auth.middleware.AuthenticationMiddleware',
  'django.contrib.messages.middleware.MessageMiddleware',
  'maintenancemode.middleware.MaintenanceModeMiddleware',
  'commonware.middleware.HidePasswordOnException',
  'commonware.middleware.FrameOptionsHeader',
  'django.middleware.locale.LocaleMiddleware',
  'users.middleware.ProfileExistMiddleware',
  'tracker.middleware.PageViewTrackerMiddleware',
  'debug_toolbar.middleware.DebugToolbarMiddleware')


Traceback:
File "/Library/Python/2.6/site-packages/django/core/handlers/base.py" in 
get_response
   80.                     response = middleware_method(request)
File 
"/Users/paul/Sites/mozilla/lernanta/lernanta/apps/tracker/middleware.py" 
in process_request
   17.         for botname in settings.BOT_NAMES:
File "/Library/Python/2.6/site-packages/django/utils/functional.py" in 
__getattr__
   277.         return getattr(self._wrapped, name)

Exception Type: AttributeError at /
Exception Value: 'Settings' object has no attribute 'BOT_NAMES'





On 21/09/2011 21:48, zuzel.vp wrote:
> Remember that the regular expression you used to filter page views is
> tracking * after the page slug. The longer ones we currently have on
> db are:
>
> mysql>  select request_url, length(request_url) from tracker_pageview
> order by length(request_url) desc limit 3;
> +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
> | request_url
>
>                                                | length(request_url) |
> +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
> | /en/groups/getting-started-with-scilab/content/session-5-ranges-sub-matrix-extraction-and-replacement/'&source=mobileproducts'&ved=0CBEQFjAEOLYC'&usg=AFQjCNEaHFOXL6Yt6N4lAWjXGu65Hy3rqw'
> |                 185 |
> | /en/groups/introduction-to-the-field-of-computer-supported-co/content/wk-7-cases-knowledge-forum-wise-math-forum-compendium-embedded-phenomena-immersive-enviros/comment/2350/
>             |                 174 |
> | /en/groups/introduction-to-the-field-of-computer-supported-co/content/wk-7-cases-knowledge-forum-wise-math-forum-compendium-embedded-phenomena-immersive-enviros/comment/2374/
>             |                 174 |
> +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
>
> and wouldn't the referrer url have the same problem?
>
> However this error seams to be specific to migrations because the last
> tie I tried 'python manage.py syncdb --all --noinput' worked. Paul
> does that last command works for you or do you get the same error
> while creating the db without using the migrations.
>



More information about the p2pu-dev mailing list