Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7827055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:42:10+00:00 2026-06-02T09:42:10+00:00

I am trying to build a user management interface for an app that is

  • 0

I am trying to build a user management interface for an app that is written in rails, I am using django for the purpose. I already have the legacy database from the rails app, which contains the content that I would be managing, and for user management on this new django app, I want to use django-admin. But I do not want to alter the structure of the legacy database I have. When doing, syncdb, I saw that django created all the tables under the legacy database, which is not what I want. What I have done for now is, I have defined multiple databases on settings.py, the legacy database being the non-default. Doing so django created all the user / auth related tables on the default database, which prevented the structure of legacy database from being altered. But I want to know if there are any other better way, where I could do something like, for user,auth,sessions etc use database A and for other contents use database B(legacy database).

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T09:42:13+00:00Added an answer on June 2, 2026 at 9:42 am

    You talk about Authentication tables. You may declare 2 databases, the main database (‘default’) of your django app will only contains the django.contrib.auth.models models.

    Your other ones will be inspected. You’ll set database name in your generated models’s admin and it should works magically.

    Here how to handle multiple and configure db: https://docs.djangoproject.com/en/dev/topics/db/multi-db/

    How you specify your ModelAdmin class to handle multiple database: https://docs.djangoproject.com/en/dev/topics/db/multi-db/#exposing-multiple-databases-in-django-s-admin-interface

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a small testing app with erlang+mnesia. I have a user
I 'm trying to build a user and a contact management project. i have
I have been trying to build a user control with some custom properties set
I'm trying to build a WPF user interface containing a TabControl, and a TextBlock.
I'm trying to build a simple User Template system so that my users can
I've trying to build a user control that will display the content of a
I am trying to build a middleware application that functions in between the user
I've recently started learning/using django; I'm trying to figure out a way to have
I am trying to build a user-module that can be used in most of
I am trying to build a rails login process with devise that will allow

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.