seuno-dev/candleaf

module 'django.conf.global_settings' has no attribute 'STRIPE_SECRET_KEY'

Opened this issue · 0 comments

I am geting this error when ever i run the python candleaf/dev/populate_products.py i have done some changes also to the populate_products.py

settings.configure() #this
from candleaf.store.models import Product, ProductImage, Review, OrderItem, Order, FeaturedProduct

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')

django.setup()#this to resolve other issue