That's definitely PyCharm, Django does not modify your settings file.
I'm a big fan of PyCharm myself, but when following the tutorial, I would suggest using its more advanced features and use like a plain text editor to avoid any confusion.
On Wed, May 16, 2018 at 2:00 PM, Paolo Chilosi <paolo.chilosi@gmail.com> wrote:
just a note on your note: I created a few more new project/app using PyCharm create facility and I found the app registered in the INSTALLED_APPS settings. I do not know if it is Django or PyCharm that introduce this setting. In the first case the Django tutorial documentation should be amended. In any case from now I follow the protocol of inspecting the INSTALLED_APPS settings after the creation of a new project/app.--
On Tuesday, May 15, 2018 at 12:27:15 PM UTC-4, James Farris wrote:Just to note: Django doesn't change the settings.py file, it only references it so it knows what configurations to load.On Tue, May 15, 2018 at 7:27 AM Paolo Chilosi <paolo....@gmail.com> wrote:thanks for pointing out about the typo. However this was not the cause of the exception. Look to my previous answer.
On Tuesday, May 15, 2018 at 9:44:57 AM UTC-4, Sidyvan Fernandes de Andrade wrote:python manage.py makemigrations polls2018-05-15 8:51 GMT-03:00 Paolo Chilosi <paolo....@gmail.com>: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 messagesTraceback (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\managemen t\__ini
t__.py", line 371, in execute_from_command_line
utility.execute()
File "C:\Users\Paolo\PycharmProjects\mysite\venv\lib\site- packages\django\core\managemen t\__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 django-users...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.--
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%40goog legroups.com
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 django-users...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.
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/fffe2c47-a057 .-4dbb-9f8c-718b3abb8939%40goog legroups.com
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 django-users+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
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/024e9646- .9424-44cc-adfb-cc5397c3146e% 40googlegroups.com
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/CAHEnUVXu%3DA%3DDjx53hBEnzaMAnmcsAzX1_BYAj3EpJoxrMJWGZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment