Error

28 views
Skip to first unread message

Anoosha Masood Keen

unread,
Jan 26, 2018, 9:07:23 AM1/26/18
to Django users

Working with ticket

#29039

Error:

 if name.startswith('.'):
AttributeError: 'NoneType' object has no attribute 'startswith'


CODE added to settings.py:


MIGRATION_MODULES = {}
for app in INSTALLED_APPS:
    if app:
        MIGRATION_MODULES[app] = None
        print (MIGRATION_MODULES[app])
   

Akhil Lawrence

unread,
Jan 28, 2018, 12:23:57 PM1/28/18
to Django users
The error stack or explanation you have given is very hard to understand the problem.

I guess the name you mentioned is MIGRATION_MODULES[app]. Within your code you are assigning MIGRATION_MODULES[app] = None

So I would suggest to add a check like if name and name.startswith('.'):
Reply all
Reply to author
Forward
0 new messages