django-admin
Django: How to display errors in a custom action?
What\'s the best practice for displaying an error message for erro开发者_JS百科rs that occurred in a custom action?Use messages framework. The description is here[详细]
2023-04-04 15:14 分类:问答How do I redirect users who try to access admin area in Django?
I\'ve noticed an interesting problem with Dj开发者_C百科ango\'s admin area. If I revoke my staff permissions and try to access /admin directly, I would normally expect a redirect to my login page with[详细]
2023-04-04 11:20 分类:问答Should I use Django's Admin feature?
I\'m building a Django-based review website where public users create all of the content on the site. Users create reviews for given items and they also create the items themselves that will be review[详细]
2023-04-04 08:33 分类:问答Django models.ForeignKey filter
I have a 2 models: class Foo(models.Model): name... type = models.CharField(choices=TYPE_CHOICES) class Fighter(models.Model):[详细]
2023-04-04 08:17 分类:问答Django: Overriding ModelAdminForm's field attributes
I am trying to override a ModelAdmin\'s form field as below: class MyModelAdmin(admin.ModelAdmin): def ge开发者_运维百科t_form(self, *args, **kwargs):[详细]
2023-04-04 07:21 分类:问答Django admin 'is a' relationships
I\'ve had plenty of experience in Django but I\'m very new to the admin app (we usually build everything into the page as per project requirements).[详细]
2023-04-04 01:49 分类:问答Django admin exclude filter
I\'m looking for a way to implement exclude filter in django admin list view. The case is the following:[详细]
2023-04-03 22:15 分类:问答Apache only serves first level of Django static files directory
I have a site I made with Django, and I\'m trying to deploy it on an Apache server I have lying around (using mod_wsgi as recommended by the official docs) and for the most part, everything\'s going g[详细]
2023-04-03 20:46 分类:问答Django admin: sending signal on field change
I need to trigger a signal if and only if form field \"status\" is updated. The signal works fine, but is being triggered regardless of any change submissions to the form.[详细]
2023-04-03 12:13 分类:问答Admin view access to other normal users in django
How can I give access for the开发者_开发百科 admin views to normal users in django?Go to the admin site and edit the user. Check the check box (under permissions) where it says:[详细]
2023-04-03 12:11 分类:问答