Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-1 votes
0 answers
12 views

How do I transfer axes to the Django 5 custom admin panel?

I have a django project with two admin panels, one main for filling with models, etc., and the second for blogs (I want to store users, groups and all sorts of logs there) I connected logentry to the ...
6ulbazavr99's user avatar
0 votes
1 answer
17 views

How to "fix" user input on the django admin page datetime input

I have a model Itineraries that has a tabularInline model ItineraryDetails that has destination, arrival, and departure times. I want to allow users to input 09302025 and 700 for each datetime field ...
Joseff Ribble's user avatar
0 votes
0 answers
9 views

Foriegn key Fields isn't translated in django admin page with django-parler

I am using django-parler to translate models. In django admin page, When I change the language, the foriegn key isn't changing to current language, always displaying default language. enter image ...
Dovudkhon Azizov's user avatar
0 votes
0 answers
45 views

Django Admin: Model visible locally but not in production

I'm encountering an issue with a Django application. I created a model and registered it in the admin. Everything works fine locally and I can see the model in the admin interface, but in production, ...
CanAnyOneHelpMe's user avatar
1 vote
1 answer
22 views

Change title (verbose name plural) in custom admin.TabularInline

In my Django admin UI I use a TabularInline like this: class MyCustomInline(admin.TabularInline): # ... def get_queryset(self, request): # ... The overridden functions adds a filter, ...
Achim's user avatar
  • 15.6k
0 votes
0 answers
24 views

import class in admin.py from package that in site-packages

I used django-comment-system I want import classadmin from admin.py (that in my app project) at admin.py (that in LIB/site-packages/comment) from kernel.blog import models #here is LIB/site-packages/...
SOFArminRh's user avatar
0 votes
1 answer
25 views

Resize readonly fields in Django Admi

In my Django admin im currently displaying JSONField as readonly, the JSON data is quite large and takes up about 80-90% of the page. I was able to find an answer for how one might resize a not ...
H0lyBruh's user avatar
0 votes
1 answer
30 views

custom delete action admin class in django

I want to custom delete action admin class with overwrite function delete in admin.py , but it dosn't work ! this is the error : Post with ID “<django.db.models.query_utils.DeferredAttribute object ...
SOFArminRh's user avatar
0 votes
1 answer
15 views

Adding a filter to a Django Module

I'm working in a Django project. I've created a model to save the last 50 errors that happen. models.py class Error(models.Model): ERROR_TYPE_CHOICES = [ ('ERROR', 'ERROR'), ('...
Linux's user avatar
  • 197
-1 votes
0 answers
37 views

Static files issue in Django while deploying to AWS EC2 Machine

I made a multi-tenant app using django and now want to deploy it to AWS. When I run the server on EC2 machine and go to django admin this is what I get: It works fine locally though. Also when I open ...
Rayan Ali's user avatar
0 votes
0 answers
19 views

Problem customizing search_get_results() method in Django Admin page to get Custom Search

I have an app in Django and I would like to use this template: {% load i18n static %} {% if cl.search_fields %} <div className="form-group"> <div class="search-notes col-md-...
eddyraz's user avatar
  • 41
0 votes
0 answers
15 views

Django Admin updating tabularinline forms

I have a django modeladmin like so: Class PlanInline(admin.TabularInLine): model = Plan form = PlanForm Class SettingsInline(admin.TabularInLine): model = Settings form = ...
ShivR's user avatar
  • 33
0 votes
0 answers
15 views

I want to configure my django admin as subdomain on nginx

I've configured Nginx to proxy requests for admin.myproject.com to my Django application running on port 8000. However, when accessing admin.myproject.com, it redirects to admin.myproject.com/admin ...
Ahamet Elh Rabe's user avatar
0 votes
0 answers
21 views

Django - Admin – Inline. Add a default value

There is a structure class StatPersonalForm(forms.ModelForm): class Meta: model = StatPersonal fields = "__all__" pass class StatPersonalInline(admin.TabularInline): ...
Ksoer KL Ksoero's user avatar
1 vote
1 answer
22 views

Making a @property.setter an editable field in Django Admin Inlines

Documenting my solution here, maybe someone will have a better idea. In my current project, we have a calculated @property displaying a value based off criteria from other fields. Up until this point ...
FloppyDisco's user avatar

15 30 50 per page
1
2 3 4 5
651