Python Forum

Full Version: cant access root environment folder from django folder using __init__.py
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I have a Python - Django project with the following DIRECTORY structure

PYTHON-MSACCESS_PROJECT>MYTESTENVIRONMENT>DJANGOEXAMPLE>DJANGOEXAMPLE

MYTESTENVIRONMENT has 2 modules UploadUsers.py and UploadInvoices.py which i want to access from
DJANGOEXAMPLE environment.

My __init__.py file in MYTESTENVIRONMENT reads

from . import UploadUsers
from . import UploadInvoices

My __init__.py file in DJANGOEXAMPLE reads

from MYTESTENVIRONMENT import UploadUsers
from MYTESTENVIRONMENT import UploadInvoices

I am not able to write MYTESTENVIRONMENT in this file. Intellisense does not recognize it.

Please help

regards

Sanjish