Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3635488
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:54:37+00:00 2026-05-19T00:54:37+00:00

this error arises when i try to run the following test case which is

  • 0

this error arises when i try to run the following test case which is written in models.py of my django app named ‘administration’ :

from django.test import Client, TestCase
from django.core import mail


class ClientTest( TestCase ):

    fixtures = [ 'testdata.json' ]

    def test_get_register( self ):
        response = self.client.get( '/accounts/register/', {} )
        self.assertEqual( response.status_code, 200 )

the error arises at this line specifically:

response = self.client.get( '/accounts/register/', {} ) 

my django version is 1.2.1 and python 2.6 and satchmo version is 0.9.2-pre hg-unknown.
I code in windows platform(xp sp2).
The command to run test case is:

python manage.py test administration

the complete error log is as follow:

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 121, in by_host

    site = by_host(host=host[4:], id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 124, in by_host

    site = by_host(host = 'www.%s' % host, id_only=id_only)
  File "build\bdist.win32\egg\threaded_multihost\sites.py", line 101, in by_host

    site = Site.objects.get(domain=host)
  File "C:\django\django\db\models\manager.py", line 132, in get
    return self.get_query_set().get(*args, **kwargs)
  File "C:\django\django\db\models\query.py", line 336, in get
    num = len(clone)
  File "C:\django\django\db\models\query.py", line 81, in __len__
    self._result_cache = list(self.iterator())
  File "C:\django\django\db\models\query.py", line 269, in iterator
    for row in compiler.results_iter():
  File "C:\django\django\db\models\sql\compiler.py", line 672, in results_iter
    for rows in self.execute_sql(MULTI):
  File "C:\django\django\db\models\sql\compiler.py", line 717, in execute_sql
    sql, params = self.as_sql()
  File "C:\django\django\db\models\sql\compiler.py", line 65, in as_sql
    where, w_params = self.query.where.as_sql(qn=qn, connection=self.connection)

  File "C:\django\django\db\models\sql\where.py", line 91, in as_sql
    sql, params = child.as_sql(qn=qn, connection=connection)
  File "C:\django\django\db\models\sql\where.py", line 94, in as_sql
    sql, params = self.make_atom(child, qn, connection)
  File "C:\django\django\db\models\sql\where.py", line 141, in make_atom
    lvalue, params = lvalue.process(lookup_type, params_or_value, connection)
  File "C:\django\django\db\models\sql\where.py", line 312, in process
    connection=connection, prepared=True)
  File "C:\django\django\db\models\fields\subclassing.py", line 53, in inner
    return func(*args, **kwargs)
  File "C:\django\django\db\models\fields\subclassing.py", line 53, in inner
    return func(*args, **kwargs)
  File "C:\django\django\db\models\fields\__init__.py", line 323, in get_db_prep
_lookup
    return [self.get_db_prep_value(value, connection=connection, prepared=prepar
ed)]
  File "C:\django\django\db\models\fields\subclassing.py", line 53, in inner
    return func(*args, **kwargs)
  File "C:\django\django\db\models\fields\subclassing.py", line 53, in inner
    return func(*args, **kwargs)
RuntimeError: maximum recursion depth exceeded while calling a Python object

----------------------------------------------------------------------
Ran 7 tests in 48.453s

FAILED (errors=1)
Destroying test database 'default'...
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T00:54:38+00:00Added an answer on May 19, 2026 at 12:54 am

    django test client uses default base url:

    http://testserver/

    which makes your test url /accounts/register/ into:

    http://testserver/accounts/register/

    so you should add ‘testserver’ in django sites.site model as a base url.
    maximum recursion depth exceed because django client did’nt find ‘testserver’ as a domain in sites.site

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone run into this error message before when using a timer on an
I get this error on an update panel within a popupControlExtender which is within
This error just started popping up all over our site. Permission denied to call
This error seems to just pop up now and again. It is not restricted
This error message appears on a colleague's machine when he tries to launch a
Came across this error today. Wondering if anyone can tell me what it means:
I got this error today when trying to open a Visual Studio 2008 project
I get this error: Can't locate Foo.pm in @INC Is there an easier way
Recently I ran into this error in my web application: java.lang.OutOfMemoryError: PermGen space It's
I am getting this error now that I hit version number 1.256.0: Error 4

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.