Django MongoDB Engine error when running tellsiteid

后端 未结 9 871
野的像风
野的像风 2021-02-02 04:24

SO I created a django project and app as per the tutorial and I have all the dependencies necessarry for MongoDB Engine it all seemed to be working fine and dandy till I tried e

9条回答
  •  盖世英雄少女心
    2021-02-02 04:34

    If you do not need the sites functionality (which is very probable) simply turn off django.contrib.sites app and it will fix MongoDB issues related to the SITE_ID:

    INSTALLED_APPS = (   
        (...)
        # 'django.contrib.sites',  # Comment this out
        (...)
    )
    

提交回复
热议问题