I'm not quite sure what I'm doing wrong here. Using the Sites framework, I have a site defined in my database with ID = 2. In the manage.py shell, I can get the correct site by setting SITE_ID to '2' or 2, and calling Site.objects.get(id=SITE_ID), but Site.objects.get_current() always returns the default site with ID=1.
In my visionary.settings.py, I have the line: SITE_ID = 2 I've also tried SITE_ID = '2'. Either way current_site returns the site for SITE_ID = 1. Back in the shell, if I import visionary.settings.py, all my other settings variables work fine, but SITE_ID always comes back as 1. I assume I'm somehow setting it incorrectly. Any ideas as to what I'm doing wrong? An excerpt from my settings.py: SITE_ID = 2 # SITE_URL = '67.207.147.185/visionary/' LOGIN_URL = '/visionary/accounts/login/' LOGOUT_URL = '/visionary/accounts/logout/' LOGIN_REDIRECT_URL = '/visionary/game/' An excerpt from my shell: >>> from django.contrib.sites.models import Site >>> import visionary.settings as s >>> s <module 'visionary.settings' from '/home/szaijan/dev/django/ visionary/../visionary/settings.pyc'> >>> s.SITE_ID 1 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---