简体   繁体   English

django stripe设置安装错误

[英]django stripe set up installation error

My problem is down to my lack of experience with django (and coding) and stripe. 我的问题是由于我缺乏django(和编码)和条带的经验。

I am trying to test a very basic stripe payment on a test form on my local development server, but I am getting an error message when I try to start my local development server. 我试图在我的本地开发服务器上测试一个非常基本的条带支付,但是当我尝试启动本地开发服务器时收到错误消息。

Here is aa screen grab of the issue: 这是一个问题的屏幕抓取:

在此输入图像描述

Can somone give me an idea of what I have done wrong and how I even start to go about solving the issue? 可以给我一个关于我做错了什么以及我是如何开始解决这个问题的想法? I am using djstripe which I have pip installed. 我正在使用我安装了pip的djstripe

I have searched my templates and gone over my code and SO and Google, but I am still stumped. 我搜索了我的模板并查看了我的代码以及SO和Google,但我仍然感到难过。 I have djstripe installed in my INSTALLED_APPS. 我在我的INSTALLED_APPS中安装了djstripe。

Is there a tutorial of how to read and interpret the errors in the above screen grab, or does the understanding mainly come from experience? 是否有如何阅读和解释上述屏幕抓取中的错误的教程,或者理解主要来自经验?

You need to define STRIPE_PUBLIC_KEY (and STRIPE_SECRET_KEY I believe) in your settings.py. 您需要在settings.py中定义STRIPE_PUBLIC_KEY(和我相信的STRIPE_SECRET_KEY)。 You can get this key from stripe if you have an account. 如果您有帐户,可以从条带中获取此密钥。

If you follow the instructions you will see this. 如果您按照说明操作,您将看到此信息。 https://github.com/pydanny/dj-stripe https://github.com/pydanny/dj-stripe

A google search for "reading python stack trace" gives us this: 谷歌搜索“阅读python堆栈跟踪”给了我们这样的:
https://www.odoo.com/forum/help-1/question/how-to-read-and-understand-errors-from-tracebacks-9704 https://www.odoo.com/forum/help-1/question/how-to-read-and-understand-errors-from-tracebacks-9704

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM