Now I'm having this issue and I can't find an answer that points me somewhere:
AttributeError at / 'int' object has no attribute 'set_helpers' Request Method: GET Request URL: http://localhost:8000/ Django Version: 1.6.10 Exception Type: AttributeError Exception Value: 'int' object has no attribute 'set_helpers' Exception Location: /home/elanor/Documentos/Pasantia/env/local/lib/python2.7/site-packages/mezzanine/pages/context_processors.py in page, line 18 Python Executable: /home/elanor/Documentos/Pasantia/env/bin/python Python Version: 2.7.6 Python Path: ['/home/elanor/Documentos/Pasantia/rle/geonode', '/home/elanor/Documentos/Pasantia/env/lib/python2.7', '/home/elanor/Documentos/Pasantia/env/lib/python2.7/plat-x86_64-linux-gnu', '/home/elanor/Documentos/Pasantia/env/lib/python2.7/lib-tk', '/home/elanor/Documentos/Pasantia/env/lib/python2.7/lib-old', '/home/elanor/Documentos/Pasantia/env/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/elanor/Documentos/Pasantia/env/local/lib/python2.7/site-packages', '/home/elanor/Documentos/Pasantia/rle/geonode'] Server time: Tue, 31 Mar 2015 20:25:51 -0430 Traceback Switch to copy-and-paste view /home/elanor/Documentos/Pasantia/env/local/lib/python2.7/site-packages/django/core/handlers/base.py in get_response response = response.render() ... ▶ Local vars /home/elanor/Documentos/Pasantia/env/local/lib/python2.7/site-packages/django/template/response.py in render self.content = self.rendered_content ... ▶ Local vars /home/elanor/Documentos/Pasantia/env/local/lib/python2.7/site-packages/django/template/response.py in rendered_content context = self.resolve_context(self.context_data) ... ▶ Local vars /home/elanor/Documentos/Pasantia/env/local/lib/python2.7/site-packages/django/template/response.py in resolve_context return RequestContext(self._request, context, current_app=self._current_app) ... ▶ Local vars /home/elanor/Documentos/Pasantia/env/local/lib/python2.7/site-packages/django/template/context.py in __init__ self.update(processor(request)) ... ▶ Local vars /home/elanor/Documentos/Pasantia/env/local/lib/python2.7/site-packages/mezzanine/pages/context_processors.py in page page.set_helpers(context) ... I know that in the pages app of mezzanine, in the models.py is defined the method set_helpers. So, why django is thinking that the page object is an int? Any ideas? El martes, 31 de marzo de 2015, 19:30:59 (UTC-4:30), Melvin Ramos escribió: > > Yea, it did! Thanks I'm so burned right now I missed that answer > > El martes, 31 de marzo de 2015, 19:00:29 (UTC-4:30), Graham Oliver > escribió: >> >> Perhaps the top answer here can help? >> >> http://stackoverflow.com/questions/2606194/django-error-message-add-a-related-name-argument-to-the-definition >> >> On 1 April 2015 at 12:27, Melvin Ramos <[email protected]> wrote: >> >>> Hello, >>> >>> I'm tryin to integrate Mezzanine to GeoNode. I added all I needed in >>> settings.py but this error appears: >>> >>> CommandError: One or more models did not validate: >>> agon_ratings.rating: Accessor for field 'content_type' clashes with >>> related field 'ContentType.rating_set'. Add a related_name argument to the >>> definition for 'content_type'. >>> generic.rating: Accessor for field 'content_type' clashes with related >>> field 'ContentType.rating_set'. Add a related_name argument to the >>> definition for 'content_type'. >>> >>> And I have no idea what it is. Can you help me? Have anyone tried >>> anything like this before? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Mezzanine Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> t : 021 081 71732 >> > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
