Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
46 views

django : the page refreshed when i click on import file and no message appears

i am working on a django powered web app, and i want to customize admin view of one of my models. i have made a custom template for the add page and overrides save function in admin class to process ...
oumaima's user avatar
  • 39
0 votes
1 answer
57 views

How to create an account approval admin page in Django

I'm trying to create an admin page in Django to approve user accounts. Here are the specific requirements: Background I have a landlord registration system. Each landlord must provide personal ...
Hiệp Trần Hoàng's user avatar
1 vote
2 answers
57 views

django custom user and django admin

#views.py def destroy(self, request,pk, *args, **kwargs): employee = get_object_or_404(Employee, pk=pk) user = CustomUser.objects.filter(id = employee.user.id) print('employee',...
Bipul's user avatar
  • 11
-2 votes
1 answer
43 views

django Pannel error Could not reach the URL. Please check the link

Here when i update my model i am getting this error why ? This is my models.py class ProductImage(models.Model): user = models.ForeignKey(Seller,on_delete=models.CASCADE, related_name='...
K Kumar's user avatar
  • 67
1 vote
1 answer
27 views

ManyToMany with through: ForeignKey not showing in admin

I have a ManyToManyField using through: class Entity(models.Model): relationships = models.ManyToManyField('self', through='ThroughRelationship', blank=True) class ThroughRelationship(...
bur's user avatar
  • 817
0 votes
1 answer
40 views

Django admin always redirected to static react app

I serve a static React app in Django like this: # In /my_django_project/urls.py urlpatterns = [ path('admin/', admin.site.urls), re_path(r"^(?P<path>.*)$", my_django_app.views....
Patopato's user avatar
1 vote
0 answers
48 views

Django Static Files Not Loading in Production (DEBUG=False) with Gunicorn on Kubernetes

Problem I'm running a Django application in a Kubernetes pod with Gunicorn, and my static files (admin panel CSS/JS) are not loading when DEBUG=False. In local development, I use runserver, and ...
Izaan's user avatar
  • 11
0 votes
1 answer
37 views

NoReverseMatch: Reverse for 'chat_chatroom_changelist' not found. 'chat_chatroom_changelist' is not a valid view function or pattern name

Im triyng to register model in django admin, but i get error backend-1 | Couldnt reverse admin:chat_chatroom_changelist. Im using jazzmin for customize admin panel, and i setting up it for model ...
Anton's user avatar
  • 89
0 votes
0 answers
36 views

Handling multiple related objects in the admin without using inlines

I am customising Django's admin for a particular view on some data. Where I have got so far I have a Project model, and a ProjectObjectConditions model that has a ForeignKey to it (the actual models (...
Daniele Procida's user avatar
1 vote
1 answer
77 views

Dockerized Django admin failing

I've no idea where to go with this as its deep into the admin templates. I haven't touched any of it, obviously. This is a project I am moving over to a django container. It worked in the VM just ...
addohm's user avatar
  • 2,475
1 vote
1 answer
75 views

Django imported database -- am I doing it wrong? Is Django not fit to purpose here?

So perhaps I'm missing something conceptually, or simply doing it wrong. Or, worst case scenario, "that's not what Django is for" :-/ I have set up my Django instance to fully take ...
Jason Witherspoon's user avatar
2 votes
1 answer
46 views

How to display users who are only included in the Group in django admin panel

I have an Author simple models in my Django project as below: class Author(models.Model): user = models.OneToOneField(CustomUser, on_delete=models.CASCADE, default=None) def __str__(self): ...
Celsea Mega's user avatar
0 votes
0 answers
42 views

How to display video of cloudnary in admin panel and play

So, I am using cloudinary in django for video handling. video handling is going very well but i want to display video on admin panel. models.py course = models.ForeignKey(Course, on_delete=models....
J. haimer's user avatar
1 vote
1 answer
181 views

Django FieldError: Unknown field(s) (usable_password) specified

I am facing this FieldError while trying to add User in Users in admin panel. When I click on add user this error pops up. I hac=ve not used usable_password in my code anywhere, and tried to multiple ...
khanzala's user avatar
-1 votes
1 answer
42 views

You don’t have permission to view or edit anything. Django Admin. Web-site for school

I am working on a school website where there is a superadmin who can create other users, but the regular administrators (with the is_staff permission) should not have access to the User model. However,...
Шахнур Калыбеков's user avatar

15 30 50 per page
1
2 3 4 5
683