Though I’ve never seen that error, I’m guessing that maybe you added ‘polls’ to 
your INSTALLED_APPS setting more than once.  Simply remove the extra references 
to it.

From: [email protected] [mailto:[email protected]] On 
Behalf Of Paolo Chilosi
Sent: Tuesday, May 15, 2018 6:52 AM
To: Django users
Subject: django 2.0 tutorial :: exception:: application labels are not unique.

As new to Django I am learning following the tutorial carefully. When I reached 
the point of making the migration for the polls app I executed (from the 
PyCharm terminal) the command:

(venv) C:\Users\Paolo\PycharmProjects\mysite>python manage.py makemigration 
polls

and then I obtained the following exception messages

Traceback (most recent call last):
  File "manage.py", line 15, in <module>
    execute_from_command_line(sys.argv)
  File 
"C:\Users\Paolo\PycharmProjects\mysite\venv\lib\site-packages\django\core\management\__ini
t__.py", line 371, in execute_from_command_line
    utility.execute()
  File 
"C:\Users\Paolo\PycharmProjects\mysite\venv\lib\site-packages\django\core\management\__ini
t__.py", line 347, in execute
    django.setup()
  File 
"C:\Users\Paolo\PycharmProjects\mysite\venv\lib\site-packages\django\__init__.py",
 line 24
, in setup
    apps.populate(settings.INSTALLED_APPS)
  File 
"C:\Users\Paolo\PycharmProjects\mysite\venv\lib\site-packages\django\apps\registry.py",
 line 93, in populate
    "duplicates: %s" % app_config.label)
django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, 
duplicates: polls
(venv) C:\Users\Paolo\PycharmProjects\mysite>

I reviewed carefully the code and restarted the tutorial several times , all 
the times having the same problem.

ANY SUGGESTION?? thanks

--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/653a7dd7-b330-4062-86b2-3fa06598008a%40googlegroups.com<https://groups.google.com/d/msgid/django-users/653a7dd7-b330-4062-86b2-3fa06598008a%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1e6238fce8ad4f4fbb9706fda6390236%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.

Reply via email to