Django MongoDB Engine error when running tellsiteid

后端 未结 9 903
野的像风
野的像风 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:39

    I ran into this during my setup the other day.

    Basically you need to logo into a mongo shell and lookup your siteid then add it your settings.py

    log into a mongo shell

    mongo
    

    select your db

    use *name*
    

    then do a find() on django_site

    db.django_site.find()
    

    Then open your settings.py and edit the site_ID ="" line (mine is below)

    SITE_ID = u'4f1f82011d41c81e5c00001d'
    

    That should get you up and running

提交回复
热议问题