Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
django I want to check special header for every request
I want to check if request contains custom header and if its value is equal to value in setting and reject every request that doesnt pass check I also need to do this foradmin/ too. How can i do it? I have tried overriding dispatch function in View to reject every request that doesn’t pass But this won’t work on admin -
CSRF Token in a django-tables2 form
I want to send parameters unseen to a TemplateView from a form within a django-tables2.table: class CustColumn(tables2.Column): empty_values = list() def render(self, value, record): return mark_safe(f"""<form id="params" action="/product_all/" method="POST"> <button class="btn btn-secondary"> <input type="hidden" name="store_id" value="{record.get_shelf_id}"/> <input type="hidden" name="store_name" value="record.name"/> <span class="fas fa-eye"></span>&nbsp;&nbsp;view</button> </form>""") class ShelfTable(tables2.Table): view = CustColumn(orderable=False) class Meta: model = Product sequence = ("name", "shop", "view") urls.py: path(r"product_all/", views.ProductView.as_view(), name="product-all"), view: class DeviceView(TemplateView): template_name = "gbkiosk/device_all.html" def get_context_data(self, *args, **kwargs): shelf_id = str(kwargs["shelf_id"]) shelf_name = kwargs["shelf_name"] devices = get_devices(shelf_id=shelf_id) bus_numbers = list(set([int(d["bus_number"]) for d in devices ])) context = {"store_id": kwargs["store_id"], "store_name": kwargs["store_name"], return context How would I be able to get the CSRF token into that form of the table? -
Django ORM querying nested models
I want to use django ORM to filter some records from db, I have a model named User which contain a field profile which is another model, When I do the following I get all the users having a profile: users = User.objects.filter(Q(profile__isnull=False)) profile has a field age I want to delete all the users with a profile and age>30. So I looped through all the users with a profile and then checked if their age is > 30. for user in users: if user.profile.age>30: user.delete() Is there a way to use user.profile.age>30 directly in querying? -
how can you make a reference to different models in django
I have an app calendar that looks like this: class Events(models.Model): start_date = models.DateTimeField(null=True,blank=True) end_date = models.DateTimeField(null=True,blank=True) now I want a calendar event, also a reference to other models (A, B, C, ...). Now you could of course create your own models.ForeignKey for each class: class Events(models.Model): start_date = models.DateTimeField(null=True,blank=True) end_date = models.DateTimeField(null=True,blank=True) a = models.ForeignKey('A', on_delete=models.CASCADE, blank=True, null=True) b = models.ForeignKey('B', on_delete=models.CASCADE, blank=True, null=True) c = models.ForeignKey('C', on_delete=models.CASCADE, blank=True, null=True) ... but I find that somehow inefficient, as the model has to be adapted again and again for each extension. Therefore, my consideration would be that I create a member for the model itself and a field for the respective id of the model. class Events(models.Model): start_date = models.DateTimeField(null=True,blank=True) end_date = models.DateTimeField(null=True,blank=True) Table_id = ??? (A, B, C, ...) Model_id = ??? (a1, a2, b1, c3, ...) if I imagine that correctly, each model consists of its own table in the database (or several). Whereby the table entries of model A are then for example a1, a2, a3 ... Therefore I need a reference to the respective table and a reference to the table entry in order to carry out an exact referencing. how should you do that? I've … -
How to provide the correct path of a video file after it is created in django for transcoding. I am getting an error specifying the error in path
Hey guys how to provide the correct path of a video file after it is created in django for transcoding. I am getting an error specifying the error in path. I am quite new to this and not sure how to provide the correct path. This is the code I have for transcoding. def encode_video(video_id): try: video = VideoPost.objects.get(id = video_id) input_file_path = video.path input_file_name = video.title #get the filename (without extension) filename = os.path.basename(input_file_path) # path to the new file, change it according to where you want to put it output_file_name = os.path.join('videos', 'mp4', '{}.mp4'.format(filename)) output_file_path = os.path.join(settings.MEDIA_ROOT, 'videos', output_file_name) for i in range(1): subprocess.call([settings.FFMPEG_PATH, '-i', input_file_path, '-s', '{}x{}'.format(16 /9), '-vcodec', 'mpeg4', '-acodec', 'libvo_aacenc', '-b', '10000k', '-pass', i, '-r', '30', output_file_path]) video.file.name = output_file_name video.save(update_fields=['file']) except: raise ValidationError('Not converted') tasks.py @task(name= 'task_video_encoding') def task_video_encoding(video_id): logger.info('Video Processed Successfully') return encode_video(video_id) models.py class VideoPost(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, blank=True, null=True) title = models.TextField(max_length=1000) height = models.PositiveIntegerField(editable=False, null=True, blank=True) width = models.PositiveIntegerField( editable=False, null=True, blank=True) duration = models.FloatField(editable=False, null=True, blank=True) post_date = models.DateTimeField(auto_now_add=True, verbose_name="Date Posted") updated = models.DateTimeField(auto_now_add=True, verbose_name="Date Updated") slug = models.SlugField(blank=True, unique=True, max_length=255) file = VideoField(width_field='width', height_field='height', duration_field='duration', upload_to='videos/') image = models.ImageField(blank=True, upload_to='videos/thumbnails/', verbose_name='Thumbnail image') format_set = GenericRelation(Format) Can anyone … -
In my sbmissions page the user has to get the data which is added by that particular user
I am trying to develop a website using django. In my website there is my submissions page if the user added any data to the website he can edit or delete the data which is added only by him. But my problem is when the user is logged in and viewed the my submissions page the user is getting all the data including which is added by some other users. views.py @login_required def submissions(request): tasks = listing_model.objects.all() form = listing_form() if request.method =='POST': form = listing_form(request.POST, request.FILES) if form.is_valid(): form.save() return redirect('submissions') context = {'tasks':tasks, 'form':form} return render(request, 'submission.html', context) def updateTask(request, pk): task = listing_model.objects.get(id=pk) form = listing_form(instance=task) if request.method == 'POST': form = listing_form(request.POST, request.FILES, instance=task) if form.is_valid(): form.save() return redirect('submissions') context = {'form':form} return render(request, 'updatepg.html', context) def deleteTask(request, pk): item = listing_model.objects.get(id=pk) if request.method == 'POST': item.delete() return redirect('submissions') context = {'item':item} return render(request, 'deletepg.html', context) submission.html {% extends 'base.html' %} {% load crispy_forms_tags %} {% block body %} <div class ="container"> <div class="todo-list"> {% for task in tasks %} <div class="item-row"> <div>&nbsp; &nbsp; &nbsp;</div> <a class="btn btn-sm btn-info" href="{% url 'updatepg' task.id %}">Update</a> <a class="btn btn-sm btn-danger" href="{% url 'deletepg' task.id %}">Delete</a> <span> {{ task.title … -
Forgot Password using phone number Api django rest framework
I want the user to change the password by verifying OTP through phone numbers. Please help I try a lot but id didn't get it. -
localhost:8000 not working but 127.0.0.1:8000 is django
I'm not sure when it actually happened but I have a django project and when I run my server my app no longer works with localhost and instead works with 127.0.0.1. I had changed my django version to 3.0 to use drf-extensions. I am not sure if when I changed to version 3.0 this occurred but it definitely happened somewhere around this point. Either when I used drf-extensions or when I switched my django version from 3.1 to 3.0. Everything was working fine before that To my understanding they're the same but I'm not sure as to why it is not working. My main issue is not that I can't still work from my 127.0.0.1:8000 but that when I try to run my react server that is running on localhost:3000 my backend gives me this error when trying to do an axios request Exception Value: Incorrect padding I changed the proxy in package.json to be http://127.0.0.1:8000 but still no luck in getting axios to work and still end up with the same error. -
Django admin remove form tag
I am trying to add a form to admin panel in change_list.html with two inputs of type file and button to each line. But there is no form tag on the page. @admin.register(MyModel) class MyModelAdmin(admin.ModelAdmin): list_display = ('pk', 'upload_excel') def upload_excel(self, instance): href = reverse('admin:upload_excel_view', kwargs=dict(pk=instance.pk)) return format_html(f'''<form action="{href}" enctype="multipart/form-data" method="GET"> <div> <input type="file" value="Upload"> <input type="submit" value="Upload"> </div> </form>''') -
How to send special instructions to Django UpdateView to change custom statuses of a transaction document
In my Django app, I have a requirement where a transaction "document" needs to undergo a change in "statuses" from say, Created to Approved and so on. The documents are marked Created at save when they are first created. Example case Using boolean field and filter at list generation (using Django ListView), the documents which are yet to be Approved are generated where the user is expected to follow the link (on the document number) and browse to the "change" document view where the status field will be filled in and then saved. To achieve this I can create another Django generic UpdateView and carry out the transaction (of approving the document). However, obviously there will be need for additional codes to be maintained. It will get more complex if I have multiple "statuses" to be maintained for the said document. Is there a functionality available in Django whereby I may send a special instruction (using the term for a lack of better word to explain it) through the url to enable the input field for statuses in the update/change form so that user may change the status as needed. PS. Again my question title may not have conveyed the … -
Django template and its paractical use
So I started learning Django about 2 weeks from now and in the Django template you can copy the content of an HTML file to your main HTML, so I think of an idea like this to make it easier for managing the code <!DOCTYPE html> <html lang="en"> <head> {% load static %} {% include 'style_and_cdn.html' %} {% include 'script.html' %} {% include 'navbar.html' %} {% include 'body.html' %} {% block style_and_cdn %} {% endblock %} <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Testing</title> </head> <body> {% block navbar %} {% endblock %} {% block body %} {% endblock %} {% block script %} {% endblock %} </body> </html> This is the html tree templates style_and_cdn.html script.html navbar.html main.html Is this the practical way of using it or it's unnecessary -
Get client IP using Nginx on EC2 under Elastic Load Balancer
I have an EC2 instance running Nginx + Gunicorn + Django placed under an Elastic Load Balancer. The ELB is enabled for dualstack (IPv4 and IPv6 addresses). I have set the following config in Nginx: proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; Within Django views I am trying to get IP address as follows: def get_client_ip(request): x_forwarded_for = request.META.get('HTTP_X_FORWARDED_FOR') if x_forwarded_for: ip = x_forwarded_for.split(',')[0] else: ip = request.META.get('REMOTE_ADDR') return ip This is returning the private IP of ELB instead of client IP. -
Django-Allauth Social Network Login Failure when clicking the back button
I have an issue when clicking the back button after successfully login in using Google; I get Social Network Login Failure. After replacing the html authentication_error.htmland using {{ auth_error }} I get {'provider': 'google', 'code': 'unknown', 'exception': PermissionDenied()} How I replicate this issue every time: After logging in and clicking the back button, I go back to choose another accounts. Whenever I click on the same account or a different account, I get thrown the errors above. I'd like to mention, I have set my /accounts/login page to action='reauthenticate'. As well as, whenever I reload the page, the user is still signed in. This might be a caching issue, although I'm not sure. Things I have tried. In settings.py, setting AUTH_PARAMS['access_type']='offline', In settings.py, setting SESSION_COOKIE_SECURE = False (momentarily) Any help, or any ideas on how to fix this issue will be much appreciated. -
IntegrityError at /profiles/profile/ NOT NULL constraint failed: profiles_userprofile.user_id
I am using django 3.0.3 and python 3.8.5 Well I want following functionality on my website for userprofile. 1- first time when a person sign up he can able to create his profile by clicking on profile button but after creating profile when he again click on profile button than he will be able to edit his profile not again creating profile. I am trying to make this with class base views because as a beginner cbvs are easy to use and easy to understand. I am trying with the code given below but running through an error which is: IntegrityError at /profiles/profile/ NOT NULL constraint failed: profiles_userprofile.user_id profile/models.py class UserProfile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) first_name = models.CharField(("First Name"), max_length=50) last_name = models.CharField(("Last Name"), max_length=50) profile_pic = models.ImageField(upload_to='Displays', height_field=None, width_field=None, max_length=None) phone_number = models.IntegerField(("Phone Number")) email = models.EmailField(("Email Address"), max_length=254) city = models.CharField(("City"), max_length=50) bio = models.CharField(("Bio"), max_length=50) def __str__(self): return self.email def get_absolute_url(self): return reverse("profiles:userprofile_detail", kwargs={"pk": self.pk}) def create_profile(sender, **kwargs): if kwargs['created']: profile = UserProfile.objects.create(user=kwargs['instance']) post_save.connect(create_profile, sender=User) profiles/forms.py class Meta: model = UserProfile fields = ("profile_pic","first_name","last_name",'email',"phone_number","bio","city",) def __init__(self,*args, **kwargs): super().__init__(*args, **kwargs) self.fields['first_name'].label = 'First Name ' self.fields['last_name'].label ='Last Name ' self.fields['profile_pic'].label = 'Profile Picture' self.fields['phone_number'].label = 'Phone No. ' … -
request.FILES returns <MultiValueDict: {}> Django
what is the problem with my code request.FILES returns <MultiValueDict: {}> can you help me with this? I am a beginner in django models.py (in using here is the reconsider_attachment) class TaskDocument(models.Model): task = models.ForeignKey(Task, on_delete=models.CASCADE, related_name='task_documents') attachment = models.FileField(upload_to='task_attachments/', blank = True, null = True) created_at = models.DateTimeField(auto_now_add=True) document_tag = models.CharField(max_length = 30, blank = True, null = True) reconsider_attachment = models.FileField(blank = True, null = True) forms.py class AppealAddAttachmentForm(forms.ModelForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) for myField in self.fields: self.fields[myField].widget.attrs['class'] = 'form-control' self.fields['reconsider_attachment'].required = False class Meta: model = TaskDocument fields = ['reconsider_attachment',] class AppealOTForm(forms.Form): description = forms.CharField(widget = forms.Textarea(attrs = {'rows':'3'})) views.py def ot_appeal_view(request, pk): task = get_object_or_404(Task, pk=pk) if request.method == 'POST': appeal_ot_form_description = AppealOTForm(request.POST) appeal_ot_form_file = AppealAddAttachmentForm(request.POST , request.FILES) if appeal_ot_form_description.is_valid(): description = appeal_ot_form_description.cleaned_data['description'] task.appeal_description = description task.status = "FOR RE-APPROVAL" task.save() if appeal_ot_form_file.is_valid(): file = appeal_ot_form_file.save(commit = False) file.task = task print(request.FILES , request.POST) file.save() return redirect('ot_task_list') html template (MODAL) {% load crispy_forms_tags %} <form action="" method="POST" id="appealForm" enctype="multipart/form-data"> {% csrf_token %} <div class="modal fade" id="appealModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Appeal OT</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> </div> <div class="modal-body"> {{appeal_ot_form_description|crispy}} {{appeal_ot_form_file|crispy}} … -
Django crud api with json fields in model
I am newbie in Django rest-framework. I am creating a CRUD api to achieve below model. I tried with serializers but then its creating different tables in database and linking them. I want to have single data model and then have the sub objects/models in it as JSON fields. something like this models.py to achieve below json class student(models.Model): students=models.JSONField() class=models.JSONField() subjects=models.JSONField() Is this achievable, please can you point me to the code or example ?? { "student":{ "name" : "bril", "last_name" : "jone" } "class":{ "std" : "8", "section" : "c" } "subjects":{ "mandatory":{ "subj" : "science", "marks" : "68" } "language":{ "subj" : "english", "marks" : "54" } "elective":{ "subj" : "evs", "marks" : "56" } } } -
How can i access image of note model on template
Hope You Are Good I Have A Problem i uploaded multiple images from these models class Note(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL,on_delete=models.CASCADE) title = models.CharField(max_length=30) text = models.TextField(null=True,blank=True) created_date = models.DateTimeField(auto_now_add=True) last_modified = models.DateTimeField(auto_now=True) class Images(models.Model): note = models.ForeignKey(Note,on_delete=models.CASCADE) image = models.ImageField(upload_to=user_directory_path,null=True,blank=True) now my question is how can i access images of note in jinja template because this doesn't work <p><span>{{ note.image }}</span></p> my question is how can i get images of note model in html template thanks -
how to do nested routes drf-extensions django using uuid instead of id
I have two Django models - I will change the name of my models here but the idea is the same... class Photo(models.Model): uuid = models.UUIDField(primary_key=True, default=uuid.uuid4) image = models.ImageField(upload_to='photos') created_at = models.DateTimeField(auto_now_add=True) class Attachment(models.Model): uuid = models.UUIDField(primary_key=True, default=uuid.uuid4) image = models.ImageField(upload_to='attachments') created_at = models.DateTimeField(auto_now_add=True) photo = models.ForeignKey(Photo, on_delete=models.CASCADE) I have views... class PhotoViewSet(viewsets.ModelViewSet): serializer_class = PhotoSerialzer queryset = Photo.objects.all() class AttachmentViewSet(viewsets.ModelViewSet): serializer_class = AttachmentSerializer queryset = Attachment.objects.all() and in my urls.py file... router = routers.DefaultRouter() router.register(r'photo', views.PhotoViewSet, 'photo') router.register(r'attachments', views.AttachmentViewSet, 'attachment') class NestedDefaultRouter(NestedRouterMixin, routers.DefaultRouter): pass router = NestedDefaultRouter() photo_router = router.register('photo', views.PhotoViewSet) photo_router.register('attachments', views.AttachmentViewSet, basename='photo_attachments', parents_query_lookups=['photo']) So, I am kind of new to Django, only have been coding in Django for a week now and have built a small app where I can upload pictures via admin and upload attachment pictures to those pictures and saved via aws. I've tried letting Django auto create a primary key but for some reason didn't work all too well, that's even if it did - I can't remember, however, with uuid this was not an issue as you can see I am using it in my model. My main error now is that even though I want a url like such... http://127.0.0.1:8000/api/dice/c6e53d17-72ba-4a5f-b72e-26b8b2d25230/attachments/ … -
Correct way to handle lots of external APIs in Django application
We have a Django application that is used as a backend for chatbot query handling. We are not using views and models and databases. The application is connected to XMPP server and get the request directly from XMPP connections. The server gets the request, calls the external APIs, makes the response, and sends the response back to the XMPP connection. What should be ideal way to call the external APIs here: Should we make a common function/call to handle the errors? Should we make different DTO/Serializers for every API response? (without the models) -
Django : How we can add extra fields on the Group model
Hi I am working on django permissions system with Django 2+ . And I want to add extra fields inside the Group model in Django but right now I have no idea how to do that. I tried something like: models.py from django.contrib.auth.models import Group class Group(models.Model): Group.add_to_class('description', models.CharField(max_length=180,null=True, blank=True)) But when I migrate my model then it throwing error as: Migrations for 'auth': /usr/local/lib/python3.6/site-packages/django/contrib/auth/migrations/0010_group_description.py - Add field description to group Traceback (most recent call last): File "manage.py", line 15, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 316, in run_from_argv self.execute(*args, **cmd_options) File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 353, in execute output = self.handle(*args, **options) File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 83, in wrapped res = handle_func(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/makemigrations.py", line 184, in handle self.write_migration_files(changes) File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/makemigrations.py", line 223, in write_migration_files with open(writer.path, "w", encoding='utf-8') as fh: PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/site-packages/django/contrib/auth/migrations/0010_group_description.py' -
Static files 404 nginx
Please don't mark this a duplicate - I've poured over every thread on this subject and I can't get mine to work. I'm using Django, Gunicorn, and NGINX to host a basic site on a DO droplet. Gunicorn is successfully serving the templates from Django, but I can't get NGINX to serve any static files - they all 404. $domain is my personal domain I'm trying to run it on - I triple checked and there are no typos. /var/www/nginx/error.log after a site load: 2020/09/04 05:20:49 [error] 5782#5782: *91 open() "/home/holden/sites/$domain/static/bootstrap/css/bootstrap.min.css" failed (2: No such file or directory), client: 72.214.132.56, server: $domain, request: "GET /static/bootstrap/css/bootstrap.min.css HTTP/1.1", host: $domain, referrer: "$page_on_domain" 2020/09/04 05:20:49 [error] 5782#5782: *91 open() "/home/holden/sites/$domain/static/base.css" failed (2: No such file or directory), client: 72.214.132.56, server: $domain, request: "GET /static/base.css HTTP/1.1", host: "$domain", referrer: "$page_on_domain" It says No such file or directory but the files are there, the directory listed is correct, and they are owned by the same user that nginx runs as. Here is my nginx site config thing at /etc/nginx/sites-available/$domain: server { server_name $domain www.$domain; location / { proxy_set_header Host $host; proxy_pass http://unix:/tmp/$domain.socket; } location /static/ { root /home/holden/sites/$domain/; } listen 443 ssl; # managed by … -
Use same postgres db for both Rail and Django project?
Recently we are working with Rails Now want to attach module working with Django. Can We use same data Base for both project. Secondly postgresql db is used here.If any framework or gem present that can handle this. -
Django: psycopg2.errors.UndefinedColumn: column "page_image" of "pages_page" relation does not exist
Here is a brief backstory. I am using the Mezzanine CMS for Django. I created some models that inherited from the Mezzanine models. This caused an issue in my Postgres database, where one object was present in two tables. When I would try searching my site for a post, I would not get results from one table. So, here is where I believe I messed up. I reverted my models to how they were before this issue. This meant that there was still a table in my database for those models, so my search function still wouldn't work. I wanted this relation gone, so I did something very stupid and deleted the entire database. This was fine for my local development, because I just recreated the database and migrated. When I try deploying this project of mine with the newly created postgres database onto DigitalOcean, I get to this command: $ python manage.py createdb --nodata --noinput which gives me the error: psycopg2.errors.UndefinedColumn: column "page_image" of "pages_page" relation does not exist LINE 1: UPDATE "pages_page" SET "page_image" = '', "keywords_string"... I looked up a few threads on this error, and tried this solution that did not work: python manage.py shell >>> … -
What should I use to deploy a python based image analysis program for an end-user on a server
I have written an SEM (Scanning electron image)-image analysis program in Python which is capable of calculating all the microstructural properties in an SEM image e.g. Identification of different areas in the image 2) calculate the area of specific regions in microns, diameters, circularity, etc. The final results are in the form of a graph(area in microns vs cumulative frequency vs percentage contribution) plotted with the help of Matplotlibrary in Python. I want to give this program on a server where anyone can use it through an interface without looking at the code. I am confused that what should I use to do so? Will Django be a good choice for this? But I suspect Django cannot perform all the tasks (Not sure). I have also read about Jenkins servers. Please guide me which approach should I use to deploy this image analysis program for any user on a server. Thanks -
What causes processing time differences running REST endpoint from different sources?
Background: We are creating a SAAS app using Vue front-end, Django/DRF backend, Postgresgl, all running in a Docker environment. The benchmarks below were run on our local dev machines. The process to register a new "owner" is rather complex. It does the following: Create tenant and schema Run migrations (done in the create schema process) Create MinIO bucket Load "production" fixtures Run sync_permissions Create an owner instance in the newly created schema We are seeing some significant differences in processing times for some of the above steps running the registration process in different ways. In trying to figure out our issue, we have tried the following four methods to invoke the registration process: from the Vue front-end hitting the API endpoint from a REST client (Talend) from the APIBrowser (provided by DRF) (in some cases) via manage.py We tried it from the REST client to try to eliminate Vue as the culprit, but we got similar times between Vue and the REST client. We also saw similar times between the APIBrowser and the manage.py method, so in the tables below, we are comparing Talend to APIBrowser (or manage.py). The issue: Here are the processing times for several of the steps …