# Python decouple error DEBUG not Found (SOLVED)

**URL:** <https://forum.djangoproject.com/t/python-decouple-error-debug-not-found-solved/8193>\
**Category:** Using Django\
**Created:** [June 3, 2021, 6:09am UTC](https://forum.djangoproject.com/t/python-decouple-error-debug-not-found-solved/8193 "2021-06-03T06:09:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![firaki12345](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/firaki12345/32/4251_2.png) [@firaki12345](https://forum.djangoproject.com/u/firaki12345)\
**Post date:** [June 3, 2021, 6:09am UTC](https://forum.djangoproject.com/t/python-decouple-error-debug-not-found-solved/8193/1 "2021-06-03T06:09:44Z")

</div>

Hi i pip installed python decouple **(I am not using a virtual environment)**

I made an .env file in my django root directly where the [manage.py](https://mange.py) file sits.

used this **tutorial** here : [Secure Sensitive Django Variables using Python Decouple](https://www.ordinarycoders.com/blog/article/secure-django-variables-with-python-decouple)

**My env file:**

```auto
SECRET_KEY=adasdasdasd (Without quotes)

DEBUG=True

```

**My settings file:**

```auto
from pathlib import Path

import os

from decouple import config

# SECURITY WARNING: keep the secret key used in production secret!

SECRET_KEY = config('SECRET_KEY')

# SECURITY WARNING: don't run with debug turned on in production!

DEBUG = config('DEBUG', cast = bool)

```

**Here is the Error Image:**

![](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/2X/d/d5f9a0ca293d3c5b0636be6c54372ef68f36f7bb.png)

**SOLVED it by:**

```auto
 actually i made a new file by opening cmd prompt and then typing

 type nul > .env

 it wont let me rename or create otherwise.

 Thanks a lot solved :)

```
