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 7589535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:11:05+00:00 2026-05-30T20:11:05+00:00

I have a django application, using the basic userprofile extension of django.contrib.auth.user model. I

  • 0

I have a django application, using the basic userprofile extension of django.contrib.auth.user model. I would like to add ‘test users’ to the site, to allow individuals to view the site but not affect the rest of the users (for example, for demonstration purposes).

This is what it would entail:

1 - Allow that user to do everything a 'normal' user could do
2 - Hide that user from all searches (or places where the user may be 'viewed' by other users)

What would be a good way to accomplish this in the models? (I was thinking of setting user.is_active=False, but I run into some issues doing that.)

  • 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-30T20:11:06+00:00Added an answer on May 30, 2026 at 8:11 pm

    The best approach would be to have a different copy of your web app with a different copy of a database. You could then keep the two completely separate without having to go through incredible measures to filter access to different user groups for something that seems more like an administrative task than an actual value-added feature to your site.

    With that lecture out of the way, I’d suggest using user profiles to add custom information. You can add a boolean field, is_test_user, or something like that and then filter off of that for all the cases where you’d need to.

    A good tutorial for this can be found here.

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

Sidebar

Related Questions

I am using the standard User model (django.contrib.auth) which comes with Django. I have
I have a Django application running locally and I'd like to test the send_mail()
I am writing a Django application and using the built-in ORM. I would like
I have a many-to-many relationship in my django application where I use the add
I have two models in my Django 1.1.1 application: class UserRequest(models.Model): # blah blah
I have a django application using mod_python, fairly typical configuration except that media files
I have a Django application that logs users in and out using the standard
so I'm working on a django application where I have a model Event. Each
I have installed my django application on one of my subdomains .. subdomain1.mydomain.com using
I have a legacy application which is (currently) using Django to effectively display data.

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.