Hi!
I am creating one of my firsts django projects. I created nose tests to
cover my application and got 100% code coverage
My repo is git://github.com/oltarasenko/usermanaging.git
Now I am trying to modify my project to make settings be platform
independent. So I added following lines
to my settings.py:
# Django settings for loginregister project.
import os.path
import sys
PROJECT_ROOT = os.path.normpath(os.path.dirname(__file__))
DATABASE_NAME = os.path.join(PROJECT_ROOT, 'users.db') # Or path to
database file if using sqlite3.
ROOT_URLCONF = 'urls'
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or
"C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
os.path.join(PROJECT_ROOT, 'templates')
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.admin',
'django.contrib.sessions',
'django.contrib.sites',
'loginreg'
)
Now when I run my application everything seems to work! Everything but my
nosetests which returns long trace for me
which contains one line (displayed many times):
sub_match = pattern.resolve(new_path)
File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", line
181, in resolve
sub_match = pattern.resolve(new_path)
File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", line
181, in resolve
sub_match = pattern.resolve(new_path)
File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", line
179, in resolve
for pattern in self.urlconf_module.urlpatterns:
RuntimeError: maximum recursion depth exceeded
(I use: beryl:db_settings oleg$ nosetests --cover-package=loginreg
--with-coverage to run tests)
Could anyone suggest why I am getting it?
Thanks,
Oleg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---