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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file django-empty-users-app-1.0.1.tar.gz.

File metadata

  • Download URL: django-empty-users-app-1.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for django-empty-users-app-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6a0ac151c59b2aabeb97f6c98f606bd4ef78294cfc2a8e9cd6054fd769281747
MD5 086abfc7e1dafcc197e00a07ceb80b86
BLAKE2b-256 bd4486a0514ed8d49e74ac0cbb63f0049a0dc7f97c3c0cb418e82d2d875bd7d1

See more details on using hashes here.

File details

Details for the file django_empty_users_app-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_empty_users_app-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b97581b4985a8b26341ef79ba7a60fc3861d0b16156032cccadeaecfae469bb
MD5 a15c632b9404f8d04e642936bd114d82
BLAKE2b-256 8f7d6024c295ffb8b14b789184f8eeb14b490a8bf48aa833c3af08adafdbb6e8

See more details on using hashes here.

Supported by

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