Getting stuck at Django error: No module named registration

后端 未结 15 2204
一向
一向 2020-12-30 01:35

I installed the registration module, added it to settings.py. When I tried to run syncdb (% python sitename/manage.py syncdb --settings sitename.devsettings)

It gav

相关标签:
15条回答
  • 2020-12-30 01:57

    I was simply missing a comma after the 'registration' entry in the settings.py file. Once I added the comma after 'registration', Syncdb worked for me.

    0 讨论(0)
  • 2020-12-30 01:57

    Just try this

    1) Put down the registration app inside your project as an app

    and do the syncdb


    do the below for finding out the exact cause of error

    1.go to you project directory
    2.python manage.py dbshell
    3.in shell
    4.import registration   
    5.if you get error here which means your registration module is  not
    there on the python path (or) some problem in finding that one.
    if it works then some other problem like improper compilation .............
    
    0 讨论(0)
  • 2020-12-30 02:03

    There may be Python errors in your registration models. Try starting a shell and importing them, instantiating them, etc.

    0 讨论(0)
提交回复
热议问题