小编gum*_*ynr的帖子

推送服务证书未出现在"我的证书"中

我已按照以下所述配置推送通知的所有说明进行操作:https://developer.apple.com/library/mac/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringPushNotifications/ConfiguringPushNotifications.html

当我到最后一部分:在服务器上安装客户端SSL签名身份时,IOS推送服务证书仅出现在证书中,而不出现在"我的证书"中.

我已经尝试复制/粘贴和导入/导出到"我的证书",并且无法让它出现在那里以便导出.p12文件.

在xcode和我的开发者帐户中一切都很好看,所以我很难过......任何帮助都会非常感激!

xcode certificate apple-push-notifications ios

7
推荐指数
1
解决办法
3277
查看次数

使用Django找不到页面

我在我创建的模板文件夹中使用index.html文件设置了我的项目,它在http://example.com上运行正常.当我将welcome.html文件添加到templates文件夹并设置urls.py和views.py文件时,我在http://example.com/welcome.html上收到了一个找不到页面的消息.我已经阅读了许多参考站点进行故障排除但仍无法通过404浏览器页面...

在urls.py中:

from django.conf.urls import patterns,include, url
from django.contrib import admin
from Payments.create import views


urlpatterns = patterns('Payments.create.views',
url(r'^$', 'home', name='home'),
url(r'^/welcome.html$', 'authorization', name='authorization'),
)
Run Code Online (Sandbox Code Playgroud)

在views.py中:

def authorization(request):
    WPdata = request.GET.get('data')
    if WPdata and len(WPdata) > 0:
        content = {'title' : 'My First Post',
            'author' : WPdata,
            'date' : '18th September',
            'body' : ' Lorem ipsum'
        }
    else:
        content = ""

    return render(request,'welcome.html',content) 

def home(request):
    if request.method == 'POST':
        form = NameForm(request.POST)
        if form.is_valid():
            connection = …
Run Code Online (Sandbox Code Playgroud)

python django

1
推荐指数
1
解决办法
100
查看次数