You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which version of django-rosetta are you using?: latest
Have you looked trough recent issues and checked this isn't a duplicate? Y
This is the original code in poutil.py, and when my structure of settings is settings/*, errors will be like TypeError: expected str, bytes or os.PathLike object, not NoneType, since "settings.*".split('.') happended and settings here is a directory, which no __file__ was included.
# rosetta/poutil.pydeffind_pos(lang, project_apps=True, django_apps=False, third_party_apps=False):
# project/localeifsettings.SETTINGS_MODULE:
parts=settings.SETTINGS_MODULE.split('.')
else:
# if settings.SETTINGS_MODULE is None, we are probably in "test" mode# and override_settings() was used# see: https://code.djangoproject.com/ticket/25911parts=os.environ.get(ENVIRONMENT_VARIABLE).split('.')
project=__import__(parts[0], {}, {}, [])
# TODO: update belowproject=__import__("settings.dev")
So what should I do if my settings structure is settings/*?
The text was updated successfully, but these errors were encountered:
This is the original code in poutil.py, and when my structure of settings is
settings/*
, errors will be likeTypeError: expected str, bytes or os.PathLike object, not NoneType
, since"settings.*".split('.')
happended andsettings
here is a directory, which no__file__
was included.So what should I do if my settings structure is
settings/*
?The text was updated successfully, but these errors were encountered: