Hello Kim, If I understand you correctly;
#1. You have a Django project in which you have installed "rest_framework" (Django Rest Framework) into your environment (for example using "pip install djangorestframework"). And also, you have registered "rest_framework" in the INSTALLED_APPS of the project's settings.py #2. Again, you attempted to create a new app using the "py manage.py startapp" command where you typed "rest_framework" as the name for the new app. In that case: #1. Since you have installed Django Rest Framework (pip install djangorestframework) and registered the "rest_framework" in your INSTALLED_APPS in the settings.py, you CANNOT create another app in the same project with the same name "rest_framework". This will result in app name conflict, the very error you are seeing. #2. If your intention is to have the rest_framework app in your project, then you already have it after the installation with "pip" and registration in the INSTALLED_APPS in the settings.py. Simply go ahead and import the various functions into your app and use them as described in the Django Rest Framework tutorial. #3. If your intention is creating a new custom app, then you must choose a different name apart from "rest_framework". I hope my understanding of your challenge and my recommendation is helpful. I also hope other senior Django developers get a better understanding of your challenge and offer a working solution. Regards, Enchill On Mon, Mar 13, 2023, 00:05 Kim Sesung su <i0kj...@gmail.com> wrote: > This article was written through a translator. > Please note that there may be mistranslations or typos. > > I think I copied Django from root.urls to user. > And settings.The rest_framework registered with py's INSTALLED_APPS was > tried to create an application through the py manage.py > start_apprest_framework command, but this code occurred. > > CommandError: 'rest_framework' conflicts with the name of an existing > Python module and cannot be used as an app name. Please try another name.n > app name. Please try another name. > > I think it's because I wrote the name of the application in snake_case. > Can I make the name of the application in restFramework into camelCase? > > I need your help. > > -- > You received this message because you are subscribed to the Google Groups > "Django REST framework" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-rest-framework+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-rest-framework/bf450c07-01a7-4fde-857a-db83aa362af8n%40googlegroups.com > <https://groups.google.com/d/msgid/django-rest-framework/bf450c07-01a7-4fde-857a-db83aa362af8n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/CAGtbjMi9%3Drc3hNuZKKxGi8-TsfkwNZrjD_WKA5Kndc%2BNuXYYQA%40mail.gmail.com.