Remis Haroon - رامز
Remis Haroon - رامز

Reputation: 3572

Django : Error: No module named apps - Django version 1.4.5

Python-Django newbie here, please be gentle. I am getting error Error: No module named apps , while using Django version 1.4.5. But if I upgrade to 1.8.1, I am not getting the error. I cannot use 1.8.1 as there are some other dependencies which works only with 1.4.5 version.

/proj_folder/profiles/apps.py

from __future__ import unicode_literals
from django.apps import AppConfig

class ProfileConfig(AppConfig):
    name = "profiles"
    verbose_name = 'User Profiles'

    def ready(self):
        from . import signals   # noqa

I am getting error in the above import "Unresolved import:AppConfig" with version 1.4.5. Is there any workaround for this problem?

To state it simple, how can I backport my code to 1.4.5 version? I started this project using a template, and when I moved forward, I had to add more components which works with 1.4

Upvotes: 0

Views: 302

Answers (1)

catavaran
catavaran

Reputation: 45575

Th app registry was introduced in django 1.7, so there is no such functionality in django 1.4.

Upvotes: 1

Related Questions