Closed gtnx closed 12 years ago
Could you please post the whole traceback?
Hi,
I am running into same error. Including the backtrace.
Environment:
Request Method: GET
Request URL: http://192.168.1.3:8080/social/facebook/setup
Django Version: 1.2.1
Python Version: 2.7.2
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.humanize',
'django.contrib.markup',
'pinax.templatetags',
'notification',
'staticfiles',
'debug_toolbar',
'mailer',
'uni_form',
'django_openid',
'ajax_validation',
'timezones',
'emailconfirmation',
'announcements',
'pagination',
'friends',
'messages',
'oembed',
'groups',
'threadedcomments',
'wakawaka',
'swaps',
'voting',
'tagging',
'bookmarks',
'photologue',
'avatar',
'flag',
'microblogging',
'locations',
'django_sorting',
'django_markup',
'tagging_ext',
'pinax.apps.account',
'pinax.apps.signup_codes',
'pinax.apps.analytics',
'pinax.apps.profiles',
'pinax.apps.blog',
'pinax.apps.tribes',
'pinax.apps.photos',
'pinax.apps.topics',
'pinax.apps.threadedcomments_extras',
'pinax.apps.voting_extras',
'facebookconnect',
'about',
'captcha',
'floppyforms',
'bookstore',
'readers_community',
'socialregistration',
'socialregistration.contrib.openid',
'socialregistration.contrib.twitter',
'socialregistration.contrib.linkedin',
'socialregistration.contrib.github',
'socialregistration.contrib.facebook',
'socialregistration.contrib.foursquare',
'socialregistration.contrib.tumblr']
Installed Middleware:
['django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django_openid.consumer.SessionConsumer',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'groups.middleware.GroupAwareMiddleware',
'django.middleware.doc.XViewMiddleware',
'pagination.middleware.PaginationMiddleware',
'django_sorting.middleware.SortingMiddleware',
'pinax.middleware.security.HideSensistiveFieldsMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
'django.contrib.auth.backends.ModelBackend',
'socialregistration.contrib.facebook.middleware.FacebookMiddleware']
Traceback:
File "/home/vibhu/rc/mysite-env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
80. response = middleware_method(request)
File "/home/vibhu/rc/mysite-env/local/lib/python2.7/site-packages/django/middleware/common.py" in process_request
57. if (not _is_valid_path(request.path_info, urlconf) and
File "/home/vibhu/rc/mysite-env/local/lib/python2.7/site-packages/django/middleware/common.py" in _is_valid_path
143. urlresolvers.resolve(path, urlconf)
File "/home/vibhu/rc/mysite-env/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
301. return get_resolver(urlconf).resolve(path)
File "/home/vibhu/rc/mysite-env/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
216. sub_match = pattern.resolve(new_path)
File "/home/vibhu/rc/mysite-env/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
214. for pattern in self.url_patterns:
File "/home/vibhu/rc/mysite-env/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in _get_url_patterns
243. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/home/vibhu/rc/mysite-env/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in _get_urlconf_module
238. self._urlconf_module = import_module(self.urlconf_name)
File "/home/vibhu/rc/mysite-env/local/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
35. __import__(name)
File "/home/vibhu/rc/mysite-env/local/lib/python2.7/site-packages/socialregistration/urls.py" in <module>
3. from socialregistration.views import Logout, Setup
File "/home/vibhu/rc/mysite-env/local/lib/python2.7/site-packages/socialregistration/views.py" in <module>
5. from django.views.generic.base import View
Exception Type: ImportError at /social/facebook/setup
Exception Value: No module named base
Hi
socialreg
is using class based views which were introduced with Django 1.3, so you should use at least Django 1.3.1 to use socialreg >= 0.5
. If you can't use Django 1.3 you can still fall back to socialreg < 0.5
.
thx.. will try v <0.5
I'd recommend you upgrade to the latest version of Django though and use socialreg > 0.5
for the best experience.
hello, i'm using version 0.5.3 and i'm getting this error :
Caught ImportError while rendering: No module named base 1 form class="connect-button" name="login" method="post" action="{% url socialregistration:facebook:redirect %}"
Do you have an idea of what's going on ?