Package Renaming Migration Guide
How to migrate from djangorestframework-simple-apikey to drf-simple-apikey
As part of our efforts to streamline our package offerings, the djangorestframework-simple-apikey has been renamed to drf-simple-apikey. This section provides a detailed guide on how to migrate your project to use the new package name.
Renaming the Package
- Uninstall the Old Package: Remove the existing package by running the following command in your terminal:
pip uninstall djangorestframework-simple-apikey- Install the New Package: Install the new package using pip:
pip install drf-simple-apikeyUpdating Project Imports
You will need to update your import statements in your Django project. Change all existing import statements from:
import djangorestframework_simple_apikeyto:
import drf_simple_apikeyMigrating Django Settings
Update your Django project settings to reflect the changes in the package configuration:
- Change any references from
SIMPLE_API_KEYsettings toDRF_API_KEY. For example:
# Old settings
SIMPLE_API_KEY = {
'API_KEY': 'your-api-key-here',
'OTHER_SETTINGS': 'values'
}
# New settings
DRF_API_KEY = {
'API_KEY': 'your-api-key-here',
'OTHER_SETTINGS': 'values'
}Ensure that you update these settings throughout your project configuration files to avoid any issues during deployment or development.
Support and Feedback
For more information, detailed support, or to provide feedback about the migration process, please visit our documentation site at https://djangorestframework-simple-apikey.readthedocs.io/en/latest/ or open an issue on GitHub.
We appreciate your cooperation and understanding as we continue to improve our software offerings.