[Fixed]-Can't access models from seperate: ImportError: no module named "HealthNet.ActivityLog"

1👍

✅

from ActivityLog.models import Log

‘ActivityLog’ and ‘Appointments’ are apps. So add ‘ActivityLog’ and ‘Appointments’ to INSTALLED_APPS in settings.py

For eg:

    INSTALLED_APPS = [ 
    'Appointment.apps.AppointmentConfig',
    'User.apps.UserConfig',
    ..........................
    .........................
    'ActivityLog',
    'Appointments',
    ]

Try this. It will work.

Leave a comment