Home > OS >  Can I create one Superuser and use it in multiple Django Projects?
Can I create one Superuser and use it in multiple Django Projects?

Time:11-16

In order to reduce short-term memory load, is it possible to use one superuser account in the Django admin for multiple projects?

The Projects have independent databases with totally different purposes, hence centralizing the database isn't an option

CodePudding user response:

Django asks you to create different Superuser Accounts for every project in order to keep them isolated, if the projects aren't centralized.

Case 1: If you have Isolated Mega projects

In this case, as there's a need to create superuser for every project, you can manage the usernames and passwords for each of them in your notes somewhere.

Case 2: If you are new to Django, thus create multiple mini projects for practice

As you're a beginner, and create multiple projects for practice, no doubt, you can choose one username - password pair, and use it to login each of those project-admins.
One more option can be to save your username - password to google, which will help you by logging into your account automatically.

Case 3: If you have multiple related Projects

In this case, you can create a centralized database for each of them, and connect each of those projects with the former, which allows you to use one superuser account for each of them

  • Related