python - Django, Mezzanine: Autodiscover error, referencing non-existent model -


I'm working on the Django project was installed by someone else, working for me earlier. There is also a mezzanine component that I am not familiar with; There is no need to use it. Suddenly, I have a mistake that I can not figure out how to decide ...

I have an app 'dashboards' which has started without any model - when model was empty, Without the default from django.db import model . Today, I have added a model called banner in it, and I've added the admin.py file (as I wanted to use the Django's admin module for it). I may have restarted the foreman but I ran any migration on the never model

After this, I decided to remove the definitions of the model, as well as admin. Py, because I decided to create a separate app to handle that special feature which I was working on. After restarting the foreman, Django throws an error:

on the banner on the module name / import a module. Model Request Method: Get Request URL: http://127.0.0.1:9000/ Django Version: 1.5.5 Exception Type: ImportEire Exception Price: No Module named banner Exception Location: /home/vagrant/www/local/lib/python2.7/site-packages/django/utils/importlib.pyInput_module, line 35 Python Python Path: ['.', '' / Home / vagrant / Www / src / django-experiments ',' / home / vagrant / www / src / gargoyle ',' / home / vagrant / www / src / nexus ',' /home/vagrant/www/local/lib/python2.7 /site-packages/newrelic-2.6.0.5/newrelic/bootstrap ',' / home / widget /www/lib/python2.7 ',' /home/vagrant/www/lib/python2.7/plat-linux2 ', '/home/vagrant/www/lib/python2.7/lib-tic', '/ home / widget /www/lib/python2.7/lib-old', '/ home / vagrant / www / lib / python2. 7 / lib-dynload ',' / usr / lib / python2. 7 ',' /usr/lib/python2.7/plat-linux2 ',' / usr / lib / pyt Hon2.7 / lib-tk ',' /home/vagrant/www/local/lib/python2.7/ Site-packages'] Server time: Tuesday, 18 February 2014 01:13:55 +0000

More specifically, in:

 . In & lt; / urls.py Module & gt; Admin.autodiscover () ... autodiscover django_autodiscover (* args, ** kwargs) in local wars / home / immigration /www/local/lib/python2.7/site-packages/mezzanine/boot/__init__.py .. ▶ Local Wars  

I searched all my sources, of course I am not importing 'banner' anywhere. What is the correct way to clean it completely?

If you are not importing banners anywhere (e) searching through your codebase This should be confirmed), you can compile the python files, even then can refer to the old content.

I can not really reproduce it, but in such a way many times in the problems, especially cryptic urls.py appears in the import errors.

Find a good old -name "* .pyc" | As always, be careful with rm commands - do not ever trust, triple checks you have written * .pc or backup / version control .


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -