Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
Error
28 views
Skip to first unread message
Anoosha Masood Keen
unread,
Jan 26, 2018, 9:07:23 AM
1/26/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
1/28/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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