Sunday, January 28, 2018

Re: Error

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('.'):





On Friday, 26 January 2018 19:37:23 UTC+5:30, Anoosha Masood Keen wrote:

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])
   

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0b68dd64-6d60-4d5a-8e9b-26e3c2b70ebb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment