Parts of Development Setting does not overide production settings

So I have being trying to separate my dev from production side and of my setting. However parts work and part do not.

#dev.py
from lms.settings.prod import *
from decouple import config


#overide settings
DEBUG = True

STRIPE_PUBLIC_KEY       =config('DEV_PUBLIC_KEY')
STRIPE_SECRET_KEY       =config("DEV_SECRET_KEY")   
STRIPE_WEBHOOK_SECRET   =config('DEV_WEBHOOK_SECRET')
#prod.py
from decouple import config
from pathlib import Path
import os

DEBUG = False
STRIPE_PUBLIC_KEY       =config('STRIPE_PUBLIC_KEY')
STRIPE_SECRET_KEY       =config("STRIPE_SECRET_KEY")      
STRIPE_WEBHOOK_SECRET   =config('STRIPE_WEBHOOK_SECRET')

My folder structure is

lms
-settings
--__init__.py
--dev.py
--prod.py
Back to Top