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