[p2pu-dev] Problem with installing lernanta

Jessica Ledbetter jessica at jessicaledbetter.com
Tue Sep 27 13:59:43 UTC 2011


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

Means that you're missing an attribute "BOT_NAMES" in your settings_local
file.

This means that that attribute in the settings_local.dist.py (
https://github.com/p2pu/lernanta/blob/master/lernanta/settings_local.dist.py)
and needs to be in your settings_local.py file.

If you don't have any special data in your local file like
recaptcha_public_keys and database passwords, you can just copy/paste all of
settings_local.dist.py to settings_local.py


On Tue, Sep 27, 2011 at 9:52 AM, i at paulbooker.co.uk <i at paulbooker.co.uk>wrote:

> 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=**AFQjCNEaHFOXL6Yt6N4lAWjXGu65Hy
>> **3rqw'
>> |                 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.
>>
>>
> ______________________________**_________________
> p2pu-dev mailing list
> p2pu-dev at lists.p2pu.org
> http://lists.p2pu.org/mailman/**listinfo/p2pu-dev<http://lists.p2pu.org/mailman/listinfo/p2pu-dev>
>



-- 
Jessica Ledbetter
http://jessicaledbetter.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p2pu.org/pipermail/p2pu-dev/attachments/20110927/b30e8b3b/attachment.html>


More information about the p2pu-dev mailing list