When you setup extra domains, they'll all just run the same scripts.
However in your scripts you can read the host header using:
os.environ.get('HTTP_HOST')
This will contain the full domain (eg. mysub.mydomain.com), which you
could use to do output different content.
Hope this helps,
Danny
On 15 February 2010 19:42, reallife <[email protected]> wrote:
> Quick question: I understand how to set up the custom wildcard domain
> (as described here: http://code.google.com/appengine/docs/domain.html)
> but I am unsure how to map this within my application. I could not
> find any Python code examples in the documentation. Any suggestions
> are very much appreciated! :)
>
> Thanks
>
> On Feb 13, 6:21 pm, Danny Tuppeny <[email protected]> wrote:
>> Excellent, thanks for pointing this out, I should've checked :-)
>>
>> On 13 February 2010 17:36, Barry Hunter <[email protected]> wrote:
>>
>>
>>
>> > From the documentation:
>>
>> > If you have administrator-only pages in your application that are used
>> > to administer the app, you can have those pages appear in the
>> > Administration Console. The Administration Console includes the name
>> > of the page in its sidebar, and displays the page in an HTML iframe.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" 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/google-appengine?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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/google-appengine?hl=en.