Python Forum
cant access root environment folder from django folder using __init__.py
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cant access root environment folder from django folder using __init__.py
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Shocked Django __init__() got an unexpected keyword argument 'any' ikurorox 2 5,495 Nov-26-2021, 07:57 PM
Last Post: ikurorox
Thumbs Up Flask do not accept sub-folder in Template ?! : Solved SpongeB0B 2 3,410 Jan-15-2021, 08:09 AM
Last Post: ndc85430
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,303 Jun-30-2019, 12:21 AM
Last Post: scidam
  upload folder in server ftp falloff 3 8,214 Nov-02-2018, 09:46 PM
Last Post: Gribouillis
  HTML - Save Images From Folder - PIL dj99 6 7,891 Jul-17-2018, 07:46 AM
Last Post: dj99
  Trouble deploying Django (project folder, wsgi.py and libapache2-mod-wsgi) Drone4four 8 7,943 Mar-17-2018, 09:40 PM
Last Post: Drone4four
  Can't import any class from other folder in the same level. emih89 6 16,186 Feb-08-2018, 09:05 PM
Last Post: Larz60+
  How to include folder in exe with Pyinstaller? panoss 0 18,884 May-16-2017, 11:02 AM
Last Post: panoss
  How to Create a web server pointing to a folder using python pras120687 1 3,995 Nov-29-2016, 10:40 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020