« first day (1 day earlier)    last day (15 days later) » 

5:24 AM
still on same issue.. your code look to me
nothing wrong at ajax side
 
 
9 hours later…
1:58 PM
I've been playing around with some of these console calls and it looks like the issue is that the ajax call is sent but then there's a 500 Internal Server Error. How would that be possible since I'm just on my localhost 127.0.0.1:7000?
 
2:28 PM
server error means something wrong at your server code
you will all see (error) inside your server logs..
check in vscode console
 
So is that something to do with my settings.py file? Nothing else would be influencing my server, right?
 
no its your code(backend code) which is causing this
 
Sorry, I'm not sure I'm tracking... Would the issue be within my python, html, or javascript, or do we not know?
 
python
 
2:44 PM
Gotcha, so if it's not in settings, it must be in views.py, right?
 
yes
 
class UpdateCrudUser(View):
def get(self, request):
id1 = request.GET.get('id', None)
employee1 = request.GET.get('employee', None)
description1 = request.GET.get('description', None)
stakeholder_group1 = request.GET.get('stakeholder_group', None)
stakeholder_quadrant1 = request.GET.get('stakeholder_quadrant', None)

obj = Stakeholder.objects.get(id=id1)
obj.employee = employee1
obj.description = description1
obj.stakeholder_group = stakeholder_group1
obj.stakeholder_quadrant = stakeholder_quadrant1
Is there a way to implement alerts here similar to in the console to see what values are being pulled?
Or where an error is occuring
 
you will see exact error at your server logs
 
3:17 PM
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Is this what we'd be looking for?
INSTALLED_APPS = [
'polls.apps.PollsConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_plotly_dash.apps.DjangoPlotlyDashConfig',
'chartjs',
]
 

« first day (1 day earlier)    last day (15 days later) »