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

  • SEARCH
  • Home
  • 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 4324528
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:08:41+00:00 2026-05-21T09:08:41+00:00

Is it possible to have a set of models just for testing purposes? The

  • 0

Is it possible to have a set of models just for testing purposes? The idea is that I’ve written an app that contains some helper abstract model HelperBase. Now I’d like to provide some models that would inherit from it in order to test it, say DerivedTest1, DerivedTest2. However I wouldn’t really like those test models to appear in the production database in the end. I just want their tables to be constructed in the test database. Is it possible and if so – how to do it? I’ve already tried creating models in the tests.py file but this doesn’t seem to work.

  • 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-05-21T09:08:42+00:00Added an answer on May 21, 2026 at 9:08 am

    You could try creating a whole new app that you only use on your development server.

    E.g., if your app is called myapp you would call your testing app myapp_test.

    Then in myapp_test‘s models.py you would from myapp import models and then subclass your models in there.

    Then in your settings.py you either just try and remember to comment out the myapp_test application from INSTALLED_APPS when deploying to your production server. Or you can use the local_settings.py methodology to only have the myapp_test included in INSTALLED_APPS on your test machine.

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

Sidebar

Related Questions

Is it possible without using exponentiation to have a set of numbers that when
Possible Duplicate: SmartGWT Dialog title not set correctly I have a problem, is that
I have a very large possible data set that I am trying to visualize
I have some types that extend a common type, and these are my models.
I am just wondering if it is possible to have a condition that passes
I have a set of Django models that are used in two databases (i.e.
Is it possible to have nested set capabilities in this somewhat custom setup? Consider
Is it possible to have 2 report parameters set the same actual parameter? For
Possible Duplicate: remove_if equivalent for std::map I have a set of strings: set <wstring>
In my application i have to set shadow for the font.If it is possible

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.