I know it uses whatever I specified. What I'm asking is, inside the django process, is it possible to find out what I specified?
ie, if I did "./manage.py runserver" - how do I find out, from a view inside the django process, that I'm running on localhost:8000? if I did './manage.py runserver other.ip.address:9999", how do I find out, from a view inside the django process, that I'm running on some.other.ip.address:9999? Clearly I know what I did, I'm wondering if I can get a view inside the django process to know what I did. On Oct 27, 7:17 am, Jani Tiainen <rede...@gmail.com> wrote: > tow kirjoitti: > > > If you're running your django server through ./manage.py runserver, is > > there a way, from within the django process, to discover which IP > > address and port are in use? > > It doesn't use anything it just listens whatever you specified at > startup. Default is any local address (localhost), port 8000. Anything > beyond that you know since you have to specify it explicitly. > > -- > Jani Tiainen --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---