TypeError: argument of type ‘WindowsPath‘ is not iterable - in django python [duplicate]
将setitng里的代码改一下:
'NAME': BASE_DIR / 'db.sqlite3',
改为:
'NAME': str(os.path.join(BASE_DIR, "db.sqlite3"))
最后在setitng里
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # 'NAME': BASE_DIR / 'db.sqlite3', 'NAME': str(os.path.join(BASE_DIR, "db.sqlite3")) } }
问题搞定
 
                     
                    
                 
                    
                
 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号