How to locally test Django's Sites Framework

Posted by Off Rhoden on Stack Overflow See other posts from Stack Overflow or by Off Rhoden
Published on 2010-02-08T17:58:49Z Indexed on 2010/04/30 20:27 UTC
Read the original article Hit count: 317

Filed under:
|
|

Django has the sites framework to support multiple web site hosting from a single Django installation.

EDIT (below is an incorrect assumption of the system)


I understand that middleware sets the settings.SITE_ID value based on a lookup/cache of the request domain.


ENDEDIT

But when testing locally, I'm at http://127.0.0.1:8000/, not http://my-actual-domain.com/

How do I locally view my different sites during development?

© Stack Overflow or respective owner

Related posts about django

Related posts about django-sites