Quotes in new projects

Answered
At some point I noticed that when I create a new project, for example in Django, it is created with double quotes in the code instead of single quotes as before. I completely deleted all PyCharm files and settings, even any mentions in the registry, and used special software. Then I tried this kind of thing: I completely uninstalled Pycharm from my Windows computer. Then I installed Pycharm on Linux and created a Django project and it uses single quotes in the code: urlpatterns = [ path('admin/', admin.site.urls), ] Then I reinstalled the same version of Pycharm on Windows, created the same new Django project, but double quotes are used there: urlpatterns = [ path("admin/", admin.site.urls), ] I'm going crazy with these quotes, really hope you can help me out.
0
4 comments

Does it happen only when you create it in PyCharm? What if you create a django project from the command line?

0

Yes, I just created a new Python project in PyCharm, installed Django and ran the project through bash:

django-admin startproject mysite

And there are also double quotes in the project.

0

It means that it's not PyCharm-related.
I think it may be django version specific. At some point they may have changed it to double quotes.

0

But in Linux it is created with singles, why ?

0

Please sign in to leave a comment.