Skip to main content

Just an app with empty migration file inside.

Project description

Django Empty Users App

This app can be helpful for migrating to custom user model in existing Django project that already has users in database.

To learn more, please read this: https://testdriven.io/blog/django-custom-user-model-migration/

I've made an app with 1 empty migration file, so you don't have to create it yourself.

Installation

pip install django-empty-users-app

Usage

Add users to INSTALLED_APPS in your settings.py file.

INSTALLED_APPS = [
    ...
    'users',
    ...
]

Then run migrations:

python manage.py migrate

After performing migrations in all your environments, you can remove this app from INSTALLED_APPS and delete it from your project.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-empty-users-app-1.0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

django_empty_users_app-1.0.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page