tagging.models.Tag doesn't declare an explicit app_label

51 views
Skip to first unread message

maxi...@gmail.com

unread,
Apr 1, 2017, 7:28:59 PM4/1/17
to django-taggit
hello , everybody know , how i can solved this issue ?.

i have django 1.9 


RuntimeError: Model class tagging.models.Tag doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded.

thanks.

C:\temp\empaquetado\RamonIvanTesis\tesis\urls.py:27: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got django.views.static.serve). Pass the callable instead.
  url(r'^media/(?P<path>.*)$', 'django.views.static.serve', { 'document_root': settings.MEDIA_ROOT  } ) ,

System check identified some issues:

WARNINGS:
?: (1_8.W001) The standalone TEMPLATE_* settings were deprecated in Django 1.8 and the TEMPLATES dictionary takes precedence. You must put the values of the following settings into your default TEMPLATES dict: TEMPLATE_LOADERS.
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 350, in execute_from_command_line
    utility.execute()
  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 342, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 348, in run_from_argv
    self.execute(*args, **cmd_options)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 399, in execute
    output = self.handle(*args, **options)
  File "C:\Python27\lib\site-packages\django\core\management\commands\makemigrations.py", line 65, in handle
    loader = MigrationLoader(None, ignore_no_migrations=True)
  File "C:\Python27\lib\site-packages\django\db\migrations\loader.py", line 49, in __init__
    self.build_graph()
  File "C:\Python27\lib\site-packages\django\db\migrations\loader.py", line 170, in build_graph
    self.load_disk()
  File "C:\Python27\lib\site-packages\django\db\migrations\loader.py", line 105, in load_disk
    migration_module = import_module("%s.%s" % (module_name, migration_name))
  File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module
    __import__(name)
  File "C:\temp\empaquetado\RamonIvanTesis\modulos\enciclopedia\migrations\0004_auto_20170401_1741.py", line 6, in <module>
    import tagging.fields
  File "C:\Python27\lib\site-packages\tagging\fields.py", line 9, in <module>
    from tagging.models import Tag
  File "C:\Python27\lib\site-packages\tagging\models.py", line 474, in <module>
    class Tag(models.Model):
  File "C:\Python27\lib\site-packages\django\db\models\base.py", line 103, in __new__
    "application was loaded. " % (module, name))
RuntimeError: Model class tagging.models.Tag doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded.
Reply all
Reply to author
Forward
0 new messages