コード例 #1
0
def DetailsCoinDesk(request, pk):
    if not (isUserSubscribedByRequest(request)):
        printUserSubscriptionHasRunOut(request)
        return redirect(member)
    post = get_object_or_404(ContentCoinDesk, pk=pk)
    PageRefAddContent = 'NewBlockchainNews'
    response = render(request,
                      'user_area/user/Content_Pages/News-Article.html', {
                          'post': post,
                          'PageRefAddContent': PageRefAddContent
                      })
    return response
コード例 #2
0
def DetailsMoiseievYurii(request, pk):
    if not (isUserSubscribedByRequest(request)):
        printUserSubscriptionHasRunOut(request)
        return redirect(member)
    post = get_object_or_404(Content_Moiseiev_Yurii, pk=pk)
    PageRefAddContent = 'Technical Analysis'
    response = render(request, 'user_area/user/Content_Pages/TA-Article.html',
                      {
                          'post': post,
                          'PageRefAddContent': PageRefAddContent
                      })
    return response