Closed rumca-js closed 1 month ago
This would limit amount of refreshes between searches.
At least for:
from django.shortcuts import render from django.contrib.auth.decorators import login_required
@login_required def load_dynamic_html(request): return render(request, 'dynamic_content.html') # Return the HTML content
error: function(xhr, status, error) { if (xhr.status === 403) { // Redirect user to the login page or show a message window.location.href = '/accounts/login/?next=' + window.location.pathname; } else { console.log('Error loading dynamic content:', error); } }
<!DOCTYPE html>
Loading data....
This would limit amount of refreshes between searches.
At least for:
from django.shortcuts import render from django.contrib.auth.decorators import login_required
@login_required def load_dynamic_html(request): return render(request, 'dynamic_content.html') # Return the HTML content
error: function(xhr, status, error) { if (xhr.status === 403) { // Redirect user to the login page or show a message window.location.href = '/accounts/login/?next=' + window.location.pathname; } else { console.log('Error loading dynamic content:', error); } }
<!DOCTYPE html>
Loading data....