Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
How to get an image to display using python Django?
I am currently trying to get a profile image to be displayed on a webpage that I am building using Django. I have followed some tutorials, but the image is still not being shown. I am thinking that the issue is small but I cannot find what I either need to change or add to my code to get an image to be displayed. I have created a media folder inside the project's root directory. Within the media folder there is a profile_pics folder. I have also added a default.jpg file within the media folder. ----This is the MEDIA_ROOT and MEDIA_URL in settings.py------ MEDIA_ROOT = os.path.join(BASE_DIR, 'media') MEDIA_URL = '/media/' ---This is at the end of my urls.py file------ if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) ---This is the Model that holds the image to be displayed------ class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) image = models.ImageField(default='default.jpg', upload_to='profile_pics') ethAddress = models.CharField(max_length=42, default='') advertisement = models.ForeignKey(Advertisement, on_delete=models.CASCADE, null=True, blank=True) def __str__(self): return f'{self.user.username}' ----This is the element in my template to display the image------ <img class="rounded-circle account-img" src="{{ user.profile.image.url }}"> ----This is the view that renders the template------ @login_required @transaction.atomic def profile(request): if request.method == 'POST': u_form = UserUpdateForm(request.POST, instance=request.user) p_form = ProfileUpdateForm(request.POST, … -
How to make Django OneToOneField mutually exclusive across classes
I have: myARecord = models.OneToOneField(ClassA,...) that is used by two different classes, B and C. In the Django admin, it lets me create a B record and a C record that both reference the same A record. Two instances of either B or C cannot reference the same A record as expected. How do I enforce that mutual exclusivity for all records of both B and C classes? -
How To Make a Dropdown Automatically Populate Other Fields in Django
I have a huge Django project I am making tweaks to. I need to have one dropdown field which automatically populates two other read-only fields in an admin page. I wish to do this without saving or refreshing the page. I want to be able to see the read-only fields instantly change as I change the dropdown selection. Right now, I have the dropdown and the the two read-only fields working, but not instantly. The read-only fields only update to match the dropdown when I save, and then open that instance again. I did this by overwriting the save method: def save(self, *args, **kwargs): self.firstname = self.fullname.split()[0] self.lastname = self.fullname.split()[1] super().save(*args, **kwargs) I know there's a javascript onchange strategy that can do this, i'm just a little confused as to how to apply this to a django framework to make it behave as intended. Any help would be very much appreciated. -
How to disable django REST framework docs page
I am currently using Django REST framework and it works very well for me. The problem is that the API documentation page is public in production and I would like it to only be seen in development (localhost) or by administrators users. PS: I'm using the version 3.9.2 -
Create report table by combining two models
I have two models and I would like to combine those two models and create a table as shown in the output below. Please guide me with the view and template code. class Question(models.Model): question = models.CharField(max_length=200) alias = models.CharField(max_length=25) class Answer(models.Model) qst_id = models.ForeignKey(Question,on_delete=models.CASCADE) user_phone = models.CharField(max_length=200) user_response = models.CharField(max_length=200) created_at = models.DateTimeField(auto_now_add=True) Input Data: (Question table) qid | question | Alias ============================== 1 Your name.? Name 2 Your Age.? Age 3 Your Class? Class Data: Answer table id | qst_id | user_phone | user_response ================================================ 1 1 999999 jhony 2 2 999999 12 3 3 999999 Second class 4 1 999988 Ramesh 2 2 999988 15 3 3 999988 First class Output: (Expected ) S.No | user_phone | Name | Age | Class ============================================ 1 999999 jhony 12 second class 2 999988 ramesh 15 First class My Code: class ReportListlView(LoginRequiredMixin,ListView): model = Answers template_name = 'web/test.html' def get_context_data(self, **kwargs): pk=self.kwargs.get('pk') context = super(ReportListlView, self).get_context_data(**kwargs) context['answers'] = Answers.objects.all() context['question'] = Question.objects.all() return context temaplate/test.html <div > <table class='table table-condensed'> <tr> <th>S.No</th> <th>Phone Number</th> {% for item in question %} <th>{{ item.alias }}</th> {% endfor %} </tr> {% for item in answers %} <tr> {% ifchanged item.user_phone %} <td>{{ forloop.counter … -
Debugging an python django project
I am python developer and follow an single python django sample project. Now I face an error, still could not find the solution: "IntegrityError at /blog/1/comments/new/ NOT NULL constraint failed: blog_comment.author_id" I hope a helpful advice on this problem thanks... "models.py": class Comment(models.Model): post = models.ForeignKey(Post, on_delete=models.PROTECT) #20190613 added some code by jpanda 'on_delete' author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.DO_NOTHING, db_constraint= False) message = models.TextField() def get_absolute_url(self): return reverse('blog:post_detail', args=[self.post_id]) "views.py": class CommentCreateView(CreateView): model = Comment form_class = CommentForm def form_valid(self, form): comment = form.save(commit=False) comment.post = get_object_or_404(Post, pk = self.kwargs['post_pk']) comment.author = self.request.user comment.save() return super(CommentCreateView, self).form_valid(form) comment_new = CommentCreateView.as_view() After adding the commnents in comment form, I have to add the comments into the posting panel, but there is an error like above: I don't know the reason exactly: -
How to get request body in Django server log
I'm setting up a website using Django for its backend framework and nginx for the webserver, and I want to save all of the logs to my server, I know about nginx logs and about Django logging system, but I can't reach to request's body e.g. post request body that has been sent to my server. Nginx and Django are only logging request method, URL and date, and response status code and bytes written. How can I get access to that data? I definitely want to log the body for my POST requests. I tried some of the Django logging systems but that isn't what I want, here are some of the codes: LOG_DIR = "/var/log/django/" LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'file_django': { 'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': os.path.join(LOG_DIR, 'django.log'), }, 'file_request': { 'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': os.path.join(LOG_DIR, 'request_errors.log'), }, }, 'loggers': { 'django': { 'handlers': ['file_django'], 'level': 'DEBUG', 'propagate': True, }, 'django.request': { 'handlers': ['file_request'], 'level': 'DEBUG', 'propagate': True, }, }, } this is the current output of this code: Bad Request: /o/auth/token/ but I want a JSON format of the request with all of its data. -
How do I pass a variable declared in HTML to a 3rd party event listener?
I have a Django application where I declare a variable at the bottom of the <body> tag, and I'm trying to use this variable inside of a 3rd part event listener function in my javascript code, but it keeps saying the variable is undefined. I've tried passing the variable to the event listener using .bind() but that doesn't seem to work either. I've also tried getting the variable from window.allJobsiteNames but that was undefined also. <!-- index.html --> <body> <script type="text/javascript" src="{% static 'js/autoComplete.js' %}"></script> <script type="text/javascript" src="{% static 'js/siren_search.js' %}"></script> <script type="text/javascript"> var allJobsiteNames = "{{ all_jobsite_names|safe }}".replace(/'/g, '"'); </script> </body> // siren_search.js $(document).ready(function () { console.log(allJobsiteNames) // ==> prints correctly // Add an event listener to the searchbar document.querySelector("#searchbar").addEventListener("autoComplete", function (event) { console.log(event.detail); }.bind(allJobsiteNames)); // User presses enter on the search bar $('#searchbar').on('keypress', function (event) { addSearchSpinner(event); }); }); new autoComplete({ data: { src: allJobsiteNames, // allJobsiteNames is not defined }, // some code }); -
Where is pytest-django setUp method?
recently I migrated to pytest-django. I don't know how to populate test database with pytest-django In default TestCase I have this class VolanaTests(TestCase): def setUp(self): john = Olona.objects.create(anarana='Doe', fanampiny='John') alice = Olona.objects.create(anarana='Noa', fanampiny='Alice') Fampirantiana.objects.create( daty='2012-12-12', ora_1='15:00:00', ora_2='17:00:00', toerana='Eftrano', olona_1=john, olona_2=alice, ) self.url = reverse('volana', kwargs={'month': 12, 'year': 2012}) self.response = self.client.get(self.url) def test_status_code(self): self.assertEquals(self.response.status_code, 200) def test_resolve_view(self): view = resolve('/volana/12-2012') self.assertEquals(view.func, volana) def test_contain_event(self): self.assertContains(self.response, 'John - Alice') self.assertContains(self.response, '15H - 17H') self.assertContains(self.response, 'Alarobia 12') But how about def setUp(self): for pytest-django ? -
How can I solve a construction of "planning-" and "Execution"-Models in Django?
i am trying to develop a workout-tracking website with django. the idea is, to create one view to "plan" and "create" the workout, and another view to "execute" one of the saved workouts. Plan-Mode class Workout(models.Model): title = models.CharField(max_length=100) date_created = models.DateTimeField(default=timezone.now) date_updated = models.DateTimeField(auto_now_add=timezone.now) creator = models.ForeignKey(User, on_delete=models.CASCADE) class Excercise(models.Model): exercise = models.CharField(max_length=100) sets = models.PositiveIntegerField() reps = models.PositiveIntegerField() weight = models.DecimalField(max_digits=5,decimal_places=2) date_created = models.DateTimeField(default=timezone.now) date_updated = models.DateTimeField(auto_now_add=timezone.now) workout = models.ForeignKey(Workout, on_delete=models.CASCADE) Data could look like: "Leg Workout": (workout.title) { ("Squats", 5, 5, 35.5), ("Leg Press",3,8,55.15), } this is it for the Plan-Mode, works fine! and now im stuck! the Exe-Mode should look like this: title:Leg Workout exercise: Squats Set 1: n of 5 Reps with 35.5kg Set 2: n of 5 Reps with 35.5kg Set 3: n of 5 Reps with 35.5kg Set 4: n of 5 Reps with 35.5kg Set 5: n of 5 Reps with 35.5kg exercise: Leg Press Set 1: n of 8 Reps with 55.15kg Set 2: n of 8 Reps with 55.15kg Set 3: n of 8 Reps with 55.15kg i dont know how to handle the sets, reps and weight attributes. i guess i'd have to create a dynamic Model (for e.g. … -
How to get cells and return in html link
I have a table created by a sql query and have made each cell clickable. I want to redirect the cell to a link containing that is as follow : /proteintable/table[row][2nd col]/ table[row][3rdcol]/table[row][5th col]/ I have no idea how to do this, I can make the link have the current cell that was clicked on but I need the specifics specific columns from the row that was clicked. This is my code for the table so far: <table> <tr> <th>id</th> <th>peptide_id</th> <th>protein_id</th> <th>group_id</th> <th>search_id</th> <th>peptide_parsimony</th> </tr> {% for elem in elem_list %} <tr> {% for sub_elem in elem %} <td onclick="location.href='/proteintable/{{ sub_elem}}/'">{{ sub_elem }}</td> {% endfor %} </tr> {% endfor %} </table> It returns the table and redirects to the correct link but I want to return a link with specific the contatins specific cells data, specifically the url should be : /proteintable/peptide_id/protein_id/search_id/ for the row that is clicked. If possible, could you give me an example because I am new to html and have not used javascript or other languages very much. Thanks :) -
how i can use kwargs in django redirect, i have one error
i want create a redirect django with kwargs for my detail page! i have a comment system and i want redirect to The page where the user is inside. my urls: enter code here from django.urls import path, re_path from .views import blog, detail, posts_by_tag app_name = "blog" urlpatterns = [ re_path('^$',blog, name="blog"), re_path('^(?P<year>[\d+]{1,4})/(?P<month>[\d+]{1,2})/(?P<day>[\d+] {1,2})/(?P<slug>[\w-]+)/$', detail, name= "detail"), re_path('^(?P<tag>[\w-]+)/$',posts_by_tag, name="tag"), ] my detail : def detail(request, slug, year, month, day): post = get_object_or_404(Post,slug=slug, created__year = year, created__month = month, created__day = day) comments = post.comments.filter(active=True) new_comment = None if request.method == "POST": comment_form = CommentForm(request.POST or None) if comment_form.is_valid(): new_comment = comment_form.save(commit=False) new_comment.post = post new_comment.save() return redirect('blog:detail', kwargs= {'slug':slug,'created__year':year,'created__month' : month, 'created__day' : day,}) else: comment_form = CommentForm() context = { 'post':post, 'comments':comments, 'new_comment':new_comment, 'comment_form':comment_form, } return render(request, 'blog/detail.html', context) my error is : Reverse for 'detail' with keyword arguments '{'slug': 'django-python', 'created__year': '2019', 'created__month': '7', 'created__day': '1'}' not found. 1 pattern(s) tried: ['blog/(?P[\d+]{1,4})/(?P[\d+]{1,2})/(?P[\d+]{1,2})/(?P[\w-]+)/$'] -
issue with passing in params to viewset create method django rest framework: create() argument after ** must be a mapping, not Request
I have a django rest framework viewset with a custom create view that I have created. I want to take in params that are passed into the view with the request and set them as the values for a new object that will be saved. I am getting an error with the parameters that I am passing. this is what my current method looks like: @permission_classes((IsAuthenticated)) def create(self, validated_data): pref = Preference.objects.create(**validated_data) pref.save() return pref and this is the error that I am getting: TypeError at /api/v2/preferences/ create() argument after ** must be a mapping, not Request -
Version conflict when using the delete method of elasticsearch-dsl
So, we're using elasticsearch in our Django project, and we're using the elasticsearch-dsl python library. We got the following error in production: ConflictError(409, '{"took":7,"timed_out":false,"total":1,"deleted":0,"batches":1,"version_conflicts":1,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1.0,"throttled_until_millis":0,"failures":[{"index":"events","type":"_doc","id":"KJ7SpWsBZnen1jNBRWWM","cause":{"type":"version_conflict_engine_exception","reason":"[KJ7SpWsBZnen1jNBRWWM]: version conflict, required seqNo [1418], primary term [1]. current document has seqNo [1419] and primary term [1]","index_uuid":"2-fSZILVQzuJE8KVmpLFXQ","shard":"0","index":"events"},"status":409}]}') And with better formatting: { "took": 7, "timed_out": false, "total": 1, "deleted": 0, "batches": 1, "version_conflicts": 1, "noops": 0, "retries": { "bulk": 0, "search": 0 }, "throttled_millis": 0, "requests_per_second": -1.0, "throttled_until_millis": 0, "failures": [ { "index": "events", "type": "_doc", "id": "KJ7SpWsBZnen1jNBRWWM", "cause": { "type": "version_conflict_engine_exception", "reason": "[KJ7SpWsBZnen1jNBRWWM]: version conflict, required seqNo [1418], primary term [1]. current document has seqNo [1419] and primary term [1]", "index_uuid": "2-fSZILVQzuJE8KVmpLFXQ", "shard": "0", "index": "events" }, "status": 409 } ] } The code that produced the error was this call to the dsl delete method: connections.create_connection( hosts=[settings.ELASTICSEARCH_HOST], timeout=20, ) search = EventDocument.search() # The query is made by the django model's id search.query('match', id=self.id).delete() And here's the definition of EventDocument: from elasticsearch_dsl import ( Document, Integer, ) class EventDocument(Document): id = Integer() # other fields Our biggest issue right now is that we don't have access to the server, we got the error through an automated email we configured for errors. So I don't … -
Footer is displayed inside the header
I am using bootstrap 4 attribute, but when the body has big height the footer gets stuck in the middle. Please let me know if there is need for any css code. <header id="fh5co-header" class="fh5co-cover js-fullheight" role="banner"> <div class="overlay"></div> <div class="container"> <div class="row"> {% if messages %} {% for message in messages %} <div class="alert alert-{{ message.tags }}"> {{ message }} </div> {% endfor %} <meta http-equiv="refresh" content="2"> {% endif %} {% block content %} {% endblock %} </div> </div> </header> <footer id="fh5co-footer" role="contentinfo"> <div class="container"> <div class="row copyright"> <div class="col-md-12 text-center"> <p> <small class="block">&copy; 2019 . All Rights Reserved.</small> </p> </div> </div> </div> </footer> </div> -
python3 manage.py runserver ==> django.db.utils.OperationalError: fe_sendauth: no password supplied
I am trying to run a code cloned from github but I am getting following error when I run command python3 manage.py runserver: -
How to add google calendar to my web site by django?
I want to add google calendar to my web site. The user will first click on the button and then google calendar will be displayed to him and after the user has done his work,the changes must save in the database. But I don't know how to do it in django framework!! -
How can I show an image in a radio select with Django?
I am trying to do a radio select or a simple select with Django but I don't get that works. I have tryed something but when I try to print in html with a for to put a img tag near the radio select it doesn't work (The code in html that add the image isn't showing because I haven't done yet due to don't work the "for" in HTML). However with {{profile_form.choice_picture|as_crispy_field}} works fine but I can put url value as an image: html: <form action="{% url 'edit_profile' %}" method="post"> {% csrf_token %} {% for radio in profile_form.picture_choice %} {{ radio.choice_label }} <span class="radio">{{ radio.tag }}</span> {% endfor %} {{profile_form.choice_picture|as_crispy_field }} {{ user_form|crispy }} {{ profile_form.description|as_crispy_field }} <input class="btn btn-outline-info my-2 my-sm-0" type="submit" value="Guardar"> <a href="{% url 'profile' %}" class="btn btn-primary">Cancelar</a> </form> model: class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) picture = models.CharField(default='users/img/default.png', blank=False, null=False, max_length=200) description = models.TextField(max_length=250, blank=True) played_tournaments = models.PositiveIntegerField(default=0) won_tournaments = models.PositiveIntegerField(default=0) def __str__(self): return f'{self.user.username} Profile' class Picture(models.Model): name = models.CharField(max_length=200, blank=False, null=False, unique=True) image = models.ImageField(upload_to='users/static/users/img', null=False, unique=True) def __str__(self): return str(self.name) forms: class EditProfileForm(forms.ModelForm): images = Picture.objects.all() CHOICES = [(i.image.url, i.name) for i in images] choice_picture = forms.ChoiceField(widget=forms.RadioSelect, choices=CHOICES) class Meta: model = … -
502 Bad Gateway with nginx/1.14.0 (Ubuntu) while deploying django app on app engine
I have successfully deployed my app while following the tutorial on Google cloud platform for deploying django on a standard environment. I have mapped my custom domain to app engine like six hours back so am not sure whether DNS propagation is not complete AND am nolonger using the default .appspot.com in allowed hosts, I have only my domain. What could the issue really be? NB: Am using app engine for my first time thou experience has been a bad one since morning. Fixing error after error. Tutorials should be improved -
change value form after press button (django)
I have a form where when I select my option and press the "Select" button I need to update the form with the data of my selected object. My problem is that when I do my static object the {% for%} already marks me an error because it is not a list. I do not know if this is the correct way to do it. This is running Mysql, django 1.11 and python 2.7.15 views.py def administrador(request): alumno = Alumnos.objects.all() mapa = mapas.objects.all() competencias = Competencias.objects.all() context = { 'alumno': alumno, 'mapa': mapa, 'competencias': competencias } return render(request, 'competencias_app/competencias.html', context) def seleccion(request): alumno = Alumnos.objects.get(pk=request.POST['Nombre']) context = {'alumno': alumno} return render(request, 'competencias_app/competencias.html', context) competencias.html <form action="/seleccion" method="POST"> {% csrf_token %} <div> <select id="carrera" name="Carrera"> <option value="1">TICS</option> <option value="2">Carrera</option> <option value="3">Carrera</option> <option value="4">Carrera</option> <option value="5">Carrera</option> </select> </div> <div> <select id="Alumno" name="Nombre"> {% for alumno in alumno %} <option value="{{alumno.idAlumnos}}">{{alumno.nombre}}</option> {% endfor %} <input type="submit" name="Seleccionar"> </select> </div> <label for="ID">ID</label> <input type="input" name="id" disabled value="{{alumno.idAlumnos}}"><br> <label for="apellidos">Apellidos</label> <input type="input" name="apellidos" disabled value="{{alumno.apellidos}}"><br> <label for="Correo">Correo</label> <input type="input" name="Correo" disabled value="{{alumno.correo}}"><br> </form> the output when press "seleccionar" is Request Method: POST Request URL: http://localhost:8000/seleccion Django Version: 1.11.21 Exception Type: TypeError Exception Value: 'Alumnos' object … -
Can we find namedtuple key on the basis of value?
I want to find the key of a particular value in namedTuple. For example, code = ( (1, 'a 1'), (2, 'a 2'), ) I have 'a 1' with me. I want to find its key (i.e 1). Is there a way to do this? -
My mystyle.css is not working in django index.html
css is not working in django, image and the text are showing, but text didn't get the css effect. i tried at my best, but failed I need to get the css effect to the text in the index.html file, please help me index.html <!DOCTYPE html> {% load static %} <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title> first app Static Files </title> <link rel="stylesheet" type="text/css" href="{% static 'mystyle.css' %}"/> </head> <body> <h1> This is the photo of Cal</h1> <img src="{% static "Images/cal.jpg" %}" width="400" height="400", alt="oh ohhh!!... Cant display image"/> </body> </html> mystyle.css h1{ color: red, } this is linked with index.html, but not working settings.py import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) TEMPLATE_DIR = os.path.join(BASE_DIR,"templates") STATIC_DIR = os.path.join(BASE_DIR,"static") ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'first_app', ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'first_project.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [TEMPLATE_DIR], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'first_project.wsgi.application' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', … -
Django Connection refused: Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
I want to deploy django applications with apache and mod_wsgi on Ubuntu using Virtualbox. When i run python manage.py run server ,it returns " Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? ".I have database with tables in postgresql and I connected the database in settings.py , but it doesnot work. -
Collecting data from a json array using jquery or javscript
I would love to be able to collect the json array data , passed from my Django channels to my templates. What is the best way to go about it using jquery or javascript. async def websocket_connect(self,event): print("connected",event) #await execut the code and waits for it to finis data=self.get_obj() await self.send({ "type":"websocket.accept" "text":json.dumps(content) }) ) def get_obj(self): objects = modelname.objects.all() content={ 'objs':self.objs_to_json(objects) } return content def objs_to_json(objects): result=[] for objs in objects: result.append(self.objects_to_json(objs)) def objects_to_json(objs): return { 'name':objs.name, 'date':objs.str(objs.date), } var data =JSON.parse(e.data); /* how to use for loop to access the jason data and append it todisplay_objects */ -
Uploading large files to Server with resumable option and then server move file to S3
I need to design an architecture in which user can upload a large file e.g 1GB to server using REST API and then a stream open from server that connect with bucket and there should be resume option if in case connection lost. I have used a package name "Django-chunk-upload" but this not satisfy may requirements.