Django-cms: TypeError: argument of type 'WindowsPath' is not iterable

Created on 28 Aug 2020  路  5Comments  路  Source: django-cms/django-cms

this error face me when I am trying install Django-cms manually
http://docs.django-cms.org/en/latest/how_to/install.html

I use Django 3.0 and django-cms-3.7.4
Screenshot (298)

documentation easy pickings

Most helpful comment

I have solved the problem in setting.py I replaced
'NAME': BASE_DIR / 'db.sqlite3',
with
'NAME': str(BASE_DIR / 'db.sqlite3'),

All 5 comments

I have solved the problem in setting.py I replaced
'NAME': BASE_DIR / 'db.sqlite3',
with
'NAME': str(BASE_DIR / 'db.sqlite3'),

馃憤 did you find a reference like this in the documentation? Because we normally recommend os.path.join()

path

No, you should put this in documentation

That is in the documentation, to use os.path.join() that is. :)

os.path.join()

Screenshot (300)

there is no mention in the documentation about to use os.path.join() just only for media root but there is no mention to use it in the database and I have solved the problem in setting.py I replaced
'NAME': BASE_DIR / 'db.sqlite3',
with
'NAME': str(BASE_DIR / 'db.sqlite3'),

this point in documentation should be clear for a newbie like me and Thank's for replay

Was this page helpful?
0 / 5 - 0 ratings