you cannot import models from another django project. On Mon, Oct 14, 2024, 2:34 PM Sunday Ajayi <[email protected]> wrote:
> Hi > > You can email me so we can schedule a call to review it. > > Regards > > *AJAYI Sunday * > (+234) 806 771 5394 > *[email protected] <[email protected]>* > > > > On Mon, Oct 14, 2024 at 1:18 AM Konstantinos Dimitropoulos < > [email protected]> wrote: > >> Hello, why don't you create a project with two apps? Authenticate and >> repaire >> >> Le ven. 11 oct. 2024, 11:01, shiva singh <[email protected]> a >> écrit : >> >>> Hello >>> I am currently working on a microservices project using Django and >>> have encountered an issue. >>> i am facing issue when create microservice project using django i am >>> created 2 difrent django project in one common folder and one project name >>> is authentication and second project name is repairmodule and when i access >>> authentication project's model class in repairmodule models class and when >>> i run makemigrations i am getting this error: >>> File "<frozen importlib._bootstrap>", line 1204, in _gcd_import >>> File "<frozen importlib._bootstrap>", line 1176, in _find_and_load >>> File "<frozen importlib._bootstrap>", line 1147, in >>> _find_and_load_unlocked >>> File "<frozen importlib._bootstrap>", line 690, in _load_unlocked >>> File "<frozen importlib._bootstrap_external>", line 940, in exec_module >>> File "<frozen importlib._bootstrap>", line 241, in >>> _call_with_frames_removed >>> File "C:\BSInfosys\RepairAnything\repairmodule\repair\models.py", line >>> 2, in <module> >>> from authentication.authenticate.models import User, RepairManProfile >>> ModuleNotFoundError: No module named 'authentication' >>> this is my directory Structure: >>> RepairAnything/ >>> ├── authentication/ >>> │ ├── manage.py >>> │ ├── authentication/ >>> │ │ ├── __init__.py >>> │ │ ├── asgi.py >>> │ │ ├── settings.py >>> │ │ ├── urls.py >>> │ │ ├── wsgi.py >>> │ │ └── __pycache__/ >>> │ └── authenticate/ >>> │ ├── __init__.py >>> │ ├── admin.py >>> │ ├── apps.py >>> │ ├── migrations/ >>> │ │ └── __init__.py >>> │ ├── models.py >>> │ ├── serializers.py >>> │ ├── tests.py >>> │ ├── urls.py >>> │ └── views.py >>> ├── env/ # Your virtual environment >>> ├── repairmodule/ >>> │ ├── manage.py >>> │ ├── repair/ >>> │ │ ├── __init__.py >>> │ │ └── models.py >>> │ └── repairmodule/ >>> │ ├── __init__.py >>> │ ├── asgi.py >>> │ ├── settings.py >>> │ ├── urls.py >>> │ ├── wsgi.py >>> │ └── __pycache__/ >>> ├── db.sqlite3 # Database file >>> ├── .env # Environment variables file >>> ├── .gitignore # Git ignore file >>> └── README.md # Project README file >>> >>> I would appreciate your guidance on how to resolve this issue. If you >>> need any additional information, please let me know. >>> >>> Thank you for your time and assistance! >>> >>> Best regards, >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/CAEsRHMWn1PSmBcD%3Db6jLqYwnCD-FsVtgvKXuAe8kybRo%2BmEQDg%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-users/CAEsRHMWn1PSmBcD%3Db6jLqYwnCD-FsVtgvKXuAe8kybRo%2BmEQDg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CAOKiqZkMEKqEUad4gg4CRtDYiHT-8%3Dr-x1Ya4VxmY95tj3hGPA%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAOKiqZkMEKqEUad4gg4CRtDYiHT-8%3Dr-x1Ya4VxmY95tj3hGPA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAKYSAw0S1LN3EGH8G68mMphLiXvsQSMZScSf6t6iR3fMX8hJkA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAKYSAw0S1LN3EGH8G68mMphLiXvsQSMZScSf6t6iR3fMX8hJkA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-t5xQbHbLZABdLS6XyYn2rq2FjRRbM2myodUoXjJbavgU9mA%40mail.gmail.com.

