[Answer]-Django migrate error name 'bPath' is not defined

1👍

It looks like makemigrations automatically adds a “b” in front of string literals to mark them as byte strings in Python 3.

It may help if you change the cast from str to unicode, ie:

PRIVATE_FOLDER_ROOT = unicode(PROJECT_DIR.child('web_private'))
👤Selcuk

Leave a comment