> I have tried:
> 
> http://api.localhost:8000/
> http://api.127.0.0.1:8000/
> 
> This is not working on my windows machine (using development server,
> not apache+mod_python).

You have two choices.  If you have access to /etc/hosts on the
server, you can define somehost.localhost and someother.localhost as
aliases for localhost

and then you should be able to access via http://somehost.localhost:8000  
and http://someother.localhost:8000

OR ... (and this is what I do, because my web client is not on my dev
host)

You can run the dev server so that it binds to all IP addresses on the
host:

python manage.py runserver 0.0.0.0:8000

and then your CNAMEs should work.

http://somehost.example.com:8000/, http://someother.example.com:8000/

--
Mike Cuddy ([EMAIL PROTECTED]), Programmer, Baritone, Daddy, Human.
Fen's Ende Software, Redwood City, CA, USA, Earth, Sol System, Milky Way.

    "The problem with defending the purity of the English language is
    that English is about as pure as a cribhouse whore. We don't just
    borrow words; on occasion, English has pursued other languages down
    alleyways to beat them unconscious and rifle their pockets for new
    vocabulary." -- James D. Nicoll

       Join CAUCE: The Coalition Against Unsolicited Commercial E-mail.
                          <http://www.cauce.org/>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to