开发者

What is the URI format to create a Google Site with custom URL

开发者 https://www.devze.com 2023-02-19 09:44 出处:网络
Using python google appengine: 开发者_开发技巧entry = client.create_site(orgName, description=orgDescription,

Using python google appengine:

开发者_开发技巧entry = client.create_site(orgName,
    description=orgDescription, 
    source_site='https://sites.google.com/feeds/site/dpau.org/org' 
    uri='https://sites.google.com/feeds/site/dpau.org/MyCustomURL')

I get "Invalid URI" for the uri=

Am I using an invalid format for the URI? uri='MyCustomUrl' does not work either.


You're missing a comma in your arguments list, though I don't know that this would fix the error you're seeing. Can you copy/paste the actual error?

entry = client.create_site(orgName, description=orgDescription,
            source_site='https://sites.google.com/feeds/site/dpau.org/org',  # this comma right here
            uri='https://sites.google.com/feeds/site/dpau.org/MyCustomURL')
0

精彩评论

暂无评论...
验证码 换一张
取 消