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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:14:23+00:00 2026-06-01T20:14:23+00:00

Django documentation shows how to put your own permissions to YourModel.Meta-class. I’d like to

  • 0

Django documentation shows how to put your own permissions to YourModel.Meta-class.

I’d like to have some permissions that don’t have anything to do with a certain model. They would just allow/restrict different users to access certain views/pages.

What is the preferred place to define these permission in?
Should I create a dummy model for them?

  • 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-01T20:14:24+00:00Added an answer on June 1, 2026 at 8:14 pm

    I would define this kind of permissions in the “user profile” model, if it available (see store additional information about users).

    If “user profile” is not an option for some reason, you can still store additional permissions in User model.See Programmatically creating permissions in django docs, for info how to create Permissions when setting permissions model Meta attribute is not possible (ie. User model is defined in 3rd app lib).

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

Sidebar

Related Questions

I've seen some nifty code on django-ratings documentation and like to create something similar.
I have a simple Django model like: class Person(models.Model): referrer = models.ForeignKey('self', null=True) ...
I have some existing SQL statements that I'd like to use as a custom
The permission/authentication documentation for Django 1.4 provides the following snippet for creating custom permissions
I am currently writing some extensive documentation using Sphinx for a rather complex Django
django guardian https://github.com/lukaszb/django-guardian is a really well written object-level permissions app; and I have
I have and old django site (0.97-pre-SVN-7457) and I'm about to make some changes
The Django documentation on its CSRF protection states that: In addition, for HTTPS requests,
i am using django endless pagination . its working normally that just shows the
I have read the Django documentation (For reference, https://docs.djangoproject.com/en/1.3/intro/tutorial01/ ), but I'm still having

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.